From 9e6fe62c4701f72ba772d4012ec8fdc12cc71667 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Mon, 24 Nov 2025 15:37:01 +0800 Subject: [PATCH] =?UTF-8?q?hkys=20=E9=94=99=E8=AF=AF=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adapter/app/game/party3rd/GameHkysRestController.java | 5 +++-- .../red/circle/other/app/service/game/HkysServiceImpl.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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));