fix:接口平安错误码确认

This commit is contained in:
wangff
2025-11-20 16:48:57 +08:00
parent 38a669dff9
commit 052b0f368a
2 changed files with 3 additions and 3 deletions

View File

@@ -154,8 +154,8 @@ public class WalletHttpClientRest {
if (code != 200) { if (code != 200) {
String msg = (String) responseMap.get("msg"); String msg = (String) responseMap.get("msg");
// TODO: 等营帐通确认错误 // 700-799为平安银行错误
if (code == 400) { if (code >= 700 && code <= 799) {
throw new ServiceException(ErrorCodeEnum.WALLET_API_ERROR, msg); throw new ServiceException(ErrorCodeEnum.WALLET_API_ERROR, msg);
} else { } else {
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR, throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,

View File

@@ -199,7 +199,7 @@ public class WalletServiceImpl implements WalletService {
} catch (ServiceException e) { } catch (ServiceException e) {
// 平安打标 签约人和法人一致时同步返回失败原因从msg中取 // 平安打标 签约人和法人一致时同步返回失败原因从msg中取
String key = MessageFormat.format(RedisConstant.WALLET_OPEN_FAIL, storeId, WalletTypeEnum.PING_AN.getType()); String key = MessageFormat.format(RedisConstant.WALLET_OPEN_FAIL, storeId, WalletTypeEnum.PING_AN.getType());
redisUtilPool.setString(key, e.getErrorCode().equals(1620003) ? e.getMessage() : "系统异常"); redisUtilPool.setString(key, e.getErrorCode().equals(ErrorCodeEnum.WALLET_API_ERROR.getCode()) ? e.getMessage() : "系统异常");
log.info("营业执照已上传,接口异常", e); log.info("营业执照已上传,接口异常", e);
} catch (Exception e) { } catch (Exception e) {
log.error("营业执照已上传,打标失败", e); log.error("营业执照已上传,打标失败", e);