11
This commit is contained in:
1 parent
ea6d52eb23
commit
67f8d21819
1 file changed
+3
-3
+3
-3
@@ -388,12 +388,12 @@ public class ThirdDoorApiServiceImpl implements ThirdDoorApiService {
|
||||
return false;
|
||||
}
|
||||
String appid = headers.get("appId");
|
||||
String noncestr = headers.get("noncestr");
|
||||
String noncestr = headers.get("nonceStr");
|
||||
String timestamp = headers.get("timestamp");
|
||||
String sign = headers.get("sign");
|
||||
|
||||
if (ObjectUtil.notEqual(doorConfig.getAppId(), appid)) {
|
||||
log.error("|{}|apiParseSign 接口解签错误appId错误dto|{}|headers|{}|appid|{}|noncestr|{}|timestamp|{}|sign|{}|", TAG, json, JSONUtil.toJsonStr(headers), appid, noncestr, timestamp, sign);
|
||||
log.error("|{}|apiParseSign 接口解签错误appId错误dto|{}|headers|{}|appid|{}|nonceStr|{}|timestamp|{}|sign|{}|", TAG, json, JSONUtil.toJsonStr(headers), appid, noncestr, timestamp, sign);
|
||||
return false;
|
||||
}
|
||||
// 计算正确的sign
|
||||
@@ -405,7 +405,7 @@ public class ThirdDoorApiServiceImpl implements ThirdDoorApiService {
|
||||
successSign += json;
|
||||
String successSignMd5 = DigestUtils.md5Hex(successSign);
|
||||
if (ObjectUtil.notEqual(successSignMd5.toLowerCase(), sign.toLowerCase())) {
|
||||
log.error("|{}|apiParseSign 接口解签错误sign错误dto|{}|headers|{}|appid|{}|noncestr|{}|timestamp|{}|sign|{}|", TAG, json, JSONUtil.toJsonStr(headers), appid, noncestr, timestamp, sign);
|
||||
log.error("|{}|apiParseSign 接口解签错误sign错误dto|{}|headers|{}|appid|{}|nonceStr|{}|timestamp|{}|sign|{}|", TAG, json, JSONUtil.toJsonStr(headers), appid, noncestr, timestamp, sign);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user