diff --git a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/game/party3rd/GameHkysRestController.java b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/game/party3rd/GameHkysRestController.java index 23509a44..3be4b2fa 100644 --- a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/game/party3rd/GameHkysRestController.java +++ b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/game/party3rd/GameHkysRestController.java @@ -95,8 +95,9 @@ public class GameHkysRestController { param.setSign(cmd.getSign()); HkysResponse updateUserCoinResponse = gameHkysService.updateUserCoin(param); if (updateUserCoinResponse.getErrorCode() != HyksErrorEnum.SUCCESS.getErrorCode()) { - new HkysResponse() - .setErrorCode(updateUserCoinResponse.getErrorCode()); + return new HkysResponse() + .setErrorCode(updateUserCoinResponse.getErrorCode() == 406 ? 10003 : updateUserCoinResponse.getErrorCode()) + .setData(new JSONObject()); } JSONObject jsonObject = new JSONObject(); jsonObject.put("coin", updateUserCoinResponse.getData().getBalance()); diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HkysServiceImpl.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HkysServiceImpl.java index 331657ab..961f67b0 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HkysServiceImpl.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HkysServiceImpl.java @@ -130,7 +130,7 @@ public class HkysServiceImpl implements GameHkysService { } catch (ResponseException ex) { if (Objects.equals(ex.getErrorCode(), WalletErrorCode.INSUFFICIENT_BALANCE.getCode())) { return new HkysResponse() - .setErrorCode(HyksErrorEnum.INSUFFICIENT_BALANCE.getErrorCode()); + .setErrorCode(4004); } } catch (Exception ex) { log.error("ex:{}", Throwables.getStackTraceAsString(ex));