Commit e6824eb1 by 翁国栋 Committed by 284718418@qq.com

8小时运营后台--

保全支付回调
parent 8e608d9b
...@@ -409,7 +409,7 @@ public class CallBackContorll { ...@@ -409,7 +409,7 @@ public class CallBackContorll {
for (int n; (n = is.read(b)) != -1; ) { for (int n; (n = is.read(b)) != -1; ) {
sb.append(new String(b, 0, n)); sb.append(new String(b, 0, n));
} }
String value = DigestUtils.md5Hex(pid + secretq + timestamp); String value = DigestUtils.md5Hex(pid + secretq + timestamp + sb.toString());
if (!value.equals(sign)) { if (!value.equals(sign)) {
throw new CustomException("增员支付回调验签失败"); throw new CustomException("增员支付回调验签失败");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment