From 4ccbed475521bd6112578fe6e82cc9c1b84c2953 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Sun, 8 Oct 2023 09:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hfkj/openapi/v1/utils/SignatureUtil.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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); }