提交代码

yy_dev
胡锐 1 year ago
parent b2b92972ff
commit 4ccbed4755
  1. 14
      service/src/main/java/com/hfkj/openapi/v1/utils/SignatureUtil.java

@ -84,14 +84,16 @@ public class SignatureUtil {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
String paramStr = "{\n" + String paramStr = "{\n" +
" \"merchantNo\": \"2023090616352962600\",\n" + " \"merchantNo\": \"2023041916292112804\",\n" +
" \"outTradeNo\": \"ZF113020230505145953253897005\",\n" + " \"outTradeNo\": \"TZF100005\",\n" +
" \"refundAmount\": \"0.01\",\n" + " \"payMode\": \"ALIPAY\",\n" +
" \"refundReason\": \"测试退款\",\n" + " \"totalAmount\": 0.01,\n" +
" \"refundTradeNo\": \"1170004\"" + " \"transType\": \"NATIVE\",\n" +
" \"userId\": \"2088612673845396\",\n" +
" \"profitSharing\": 0" +
"}"; "}";
String sign = createSign(JSONObject.parseObject(paramStr), "tglpZHbMLS8URfGeNqn82MGMcVRU9GtO"); String sign = createSign(JSONObject.parseObject(paramStr), "2jLO2WjXcSRSzTCaca0Kmv0OFrfYBbrA");
System.out.println(sign); System.out.println(sign);
} }

Loading…
Cancel
Save