main^2^2
黄海 11 months ago
parent c80b62fc2c
commit a440bc3941

@ -150,8 +150,6 @@ public class YltControllerForWx {
jo.put("freeMoney", freeMoney);//减免金额
jo.put("freeTime", freeTime);//减免时长
System.out.println(jo);
jo.put("key", SignUtils.paramsSign(jo, appSecret));
// 发送 POST 请求并获取响应
String result = HttpUtil.createPost(url)

@ -70,9 +70,7 @@ public class SignUtils {
});
//拼接appSecret
String temp = Joiner.on("&").withKeyValueSeparator("=").join(params).concat("&").concat(appSecret);
System.out.println(temp);
String MD5 = md5(temp).toUpperCase();
System.out.println(MD5);
return MD5;
}

Loading…
Cancel
Save