|
|
|
@ -83,12 +83,13 @@ public class SignatureUtil { |
|
|
|
|
public static void main(String[] args) throws Exception { |
|
|
|
|
String paramStr = "{\n" + |
|
|
|
|
" \"merchantNo\": \"2023041916292112804\",\n" + |
|
|
|
|
" \"outTradeNo\": \"ZF1130202305051459532538970005\",\n" + |
|
|
|
|
" \"outTradeNo\": \"ZF1130202305051459532538970006\",\n" + |
|
|
|
|
" \"payMode\": \"WECHAT\",\n" + |
|
|
|
|
" \"totalAmount\": 0.01,\n" + |
|
|
|
|
" \"transType\": \"JSAPI\",\n" + |
|
|
|
|
" \"userId\": \"od8qG06bHnTsDWklsB2VsssLZYcQ\",\n" + |
|
|
|
|
" \"profitSharing\": 0" + |
|
|
|
|
" \"profitSharing\": 0,\n" + |
|
|
|
|
" \"specialField\": \"测试\"" + |
|
|
|
|
"}"; |
|
|
|
|
String sign = createSign(JSONObject.parseObject(paramStr), "2jLO2WjXcSRSzTCaca0Kmv0OFrfYBbrA"); |
|
|
|
|
System.out.println(sign); |
|
|
|
|