update 甘肃平台、宁夏平台controller

This commit is contained in:
Lemon
2024-11-26 13:32:04 +08:00
parent d1f19ddb11
commit c424069175
5 changed files with 21 additions and 2 deletions

View File

@@ -186,7 +186,13 @@ public class ThirdPartyBaseController extends BaseController {
protected boolean verifySignature(CommonParamsDTO dto, String signSecret) {
// 查询密钥
String operatorId = StringUtils.isNotBlank(dto.getOperatorID()) ? dto.getOperatorID() : dto.getPlatformID();
ThirdPartySecretInfoVO secretInfoVO = thirdpartySecretInfoService.queryByOperatorId(operatorId);
ThirdPartySecretInfoVO secretInfoVO;
if (StringUtils.isNotBlank(dto.getPlatformType())) {
// type不为空按照type查
secretInfoVO = thirdpartySecretInfoService.queryByThirdPlatformType(dto.getPlatformType());
}else {
secretInfoVO = thirdpartySecretInfoService.queryByOperatorId(operatorId);
}
if (secretInfoVO == null) {
throw new BusinessException("1", "无此对接平台");
}