fix:接口平安错误码确认
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user