diff --git a/service/src/main/java/com/hfkj/openapi/v1/utils/SignatureUtil.java b/service/src/main/java/com/hfkj/openapi/v1/utils/SignatureUtil.java index 9e5a11f..3e4fc0c 100644 --- a/service/src/main/java/com/hfkj/openapi/v1/utils/SignatureUtil.java +++ b/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 { String paramStr = "{\n" + - " \"merchantNo\": \"2023090616352962600\",\n" + - " \"outTradeNo\": \"ZF113020230505145953253897005\",\n" + - " \"refundAmount\": \"0.01\",\n" + - " \"refundReason\": \"测试退款\",\n" + - " \"refundTradeNo\": \"1170004\"" + + " \"merchantNo\": \"2023041916292112804\",\n" + + " \"outTradeNo\": \"TZF100005\",\n" + + " \"payMode\": \"ALIPAY\",\n" + + " \"totalAmount\": 0.01,\n" + + " \"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); }