fix:完善日志
This commit is contained in:
1 parent
7a463016ec
commit
f478ad10ea
3 files changed
+5
-3
No files matched your search
+1
@@ -92,6 +92,7 @@ public class HardAuthServiceImpl extends ServiceImpl<HardAuthMapper, HardAuthEnt
|
||||
* app智能柜授权
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Long appAuthHardDoor(HardAuthAppDto dto) {
|
||||
// 查询授权信息
|
||||
HardAuthEntity authEntity = baseMapper.selectById(dto.getAuthId());
|
||||
|
||||
+1
@@ -185,6 +185,7 @@ public class HardDoorFlowServiceImpl extends ServiceImpl<HardDoorFlowMapper, Har
|
||||
* 购买开门
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void openDoorPay(HardDoorFlowOpenDto dto, HardDoorManagerVo hardDoorDetail) {
|
||||
if (ObjectUtil.isNotEmpty(dto.getHardDoorFlowId()) || ObjectUtil.isEmpty(hardDoorDetail)) {
|
||||
return;
|
||||
|
||||
+3
-3
@@ -387,12 +387,12 @@ public class ThirdDoorApiServiceImpl implements ThirdDoorApiService {
|
||||
log.error("|{}|apiParseSign 接口解签错误headers为空dto|{}|headers|{}|", TAG, json, JSONUtil.toJsonStr(headers));
|
||||
return false;
|
||||
}
|
||||
String appid = headers.get("Appid");
|
||||
String appid = headers.get("appId");
|
||||
String noncestr = headers.get("Noncestr");
|
||||
String timestamp = headers.get("Timestamp");
|
||||
String sign = headers.get("Sign");
|
||||
String sign = headers.get("sign");
|
||||
if (ObjectUtil.notEqual(doorConfig.getAppId(), appid)) {
|
||||
log.error("|{}|apiParseSign 接口解签错误appId错误dto|{}|headers|{}|", TAG, json, JSONUtil.toJsonStr(headers));
|
||||
log.error("|{}|apiParseSign 接口解签错误appId错误dto|{}|headers|{}|appid|{}|noncestr|{}|timestamp|{}|sign|{}|", TAG, json, JSONUtil.toJsonStr(headers), appid, noncestr, timestamp, sign);
|
||||
return false;
|
||||
}
|
||||
// 计算正确的sign
|
||||
|
||||
Reference in new issue
Block a user