11
This commit is contained in:
1 parent
f478ad10ea
commit
e2159d2742
1 file changed
+4
-3
+4
-3
@@ -388,9 +388,10 @@ public class ThirdDoorApiServiceImpl implements ThirdDoorApiService {
|
||||
return false;
|
||||
}
|
||||
String appid = headers.get("appId");
|
||||
String noncestr = headers.get("Noncestr");
|
||||
String timestamp = headers.get("Timestamp");
|
||||
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);
|
||||
return false;
|
||||
@@ -404,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|{}|", TAG, json, JSONUtil.toJsonStr(headers));
|
||||
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