From 0934ef3c0d53a85a412263ca696ce8ea2254d600 Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1769111741@qq.com> Date: Thu, 20 Jul 2023 13:45:58 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=94=AF=E4=BB=98=E7=94=A8=E5=88=86?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java index 8f7854c9f..8c8a9a50a 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java @@ -209,7 +209,8 @@ public class BuyGoodsNewLogic { } int goodsId = config.getId(); - double price = config.getPrice(); + // 支付金额用分 + double price = config.getPrice()*100; // int cfgType = SSpecialConfig.getIntegerValue(SSpecialConfig.EXCHANGE_FORCE_TYPE); // double price = priceTemp==0?0: SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int)priceTemp); if(amount != price){ From d8734b999baa4e663b8ad9852dd00534fe1fd155 Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1769111741@qq.com> Date: Thu, 20 Jul 2023 13:47:44 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=94=AF=E4=BB=98=E7=94=A8=E5=88=86?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java index 8c8a9a50a..2ffcd9257 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java @@ -108,7 +108,7 @@ public class BuyGoodsNewLogic { if (sRechargeCommodityConfig == null){ throw new ErrorCodeException(ErrorCode.CFG_NULL); } - int price = (int)sRechargeCommodityConfig.getPrice(); + int price = (int)sRechargeCommodityConfig.getPrice()*100; if (!GameApplication.serverProperties.isDebug() && price != 0){ LOGGER.error("debug关闭状态,线上环境,不允许测试支付购买!"); return; @@ -128,7 +128,7 @@ public class BuyGoodsNewLogic { if(sRechargeCommodityConfig == null){ throw new ErrorCodeException(ErrorCode.CFG_NULL); } - int price = (int)sRechargeCommodityConfig.getPrice(); + int price = (int)sRechargeCommodityConfig.getPrice()*100; sendGoods(iSession.getUid(), String.valueOf(goodsId), "", vouchers_order, TimeUtils.now(), price); MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.TEST_BUY_GIGT_GOODS_RESPONSE_VALUE,null,true); } From cd6ce783cf76bc71e37e50122eb83eff03acbfda Mon Sep 17 00:00:00 2001 From: "DESKTOP-C3M45P4\\dengdan" Date: Thu, 20 Jul 2023 14:48:10 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E7=8E=89=E8=99=9A=E8=AE=BA=E9=81=93=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E8=8B=B1=E9=9B=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../map/GetEndlessHeroInfoListHandler.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/GetEndlessHeroInfoListHandler.java b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/GetEndlessHeroInfoListHandler.java index 172a78b47..f9748faf2 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/GetEndlessHeroInfoListHandler.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/GetEndlessHeroInfoListHandler.java @@ -75,17 +75,17 @@ public class GetEndlessHeroInfoListHandler extends BaseHandler hadEndlessHero = new HashSet<>(); - HeroManager heroManager = user.getHeroManager(); - if(heroManager.getEndlessHeroInfo().size()==0||heroManager.getEndlessHeroInfo().size()< STableManager.getConfig(SEndlessHeroProp.class).size()){ - heroManager.getEndlessHeroInfo().forEach((k,v)->hadEndlessHero.add(v.getTemplateId())); - for(Map.Entry entry:STableManager.getConfig(SEndlessHeroProp.class).entrySet()){ - if(hadEndlessHero.contains(entry.getKey())){ - continue; - } - Hero hero = new Hero(entry.getKey(), user.getId()); - heroManager.updateEndlessHeroInfo(hero.getId(),hero); - } - } +// Set hadEndlessHero = new HashSet<>(); +// HeroManager heroManager = user.getHeroManager(); +// if(heroManager.getEndlessHeroInfo().size()==0||heroManager.getEndlessHeroInfo().size()< STableManager.getConfig(SEndlessHeroProp.class).size()){ +// heroManager.getEndlessHeroInfo().forEach((k,v)->hadEndlessHero.add(v.getTemplateId())); +// for(Map.Entry entry:STableManager.getConfig(SEndlessHeroProp.class).entrySet()){ +// if(hadEndlessHero.contains(entry.getKey())){ +// continue; +// } +// Hero hero = new Hero(entry.getKey(), user.getId()); +// heroManager.updateEndlessHeroInfo(hero.getId(),hero); +// } +// } } }