|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|