Browse Source

fix : 星广联投回传逻辑对接-01

bilingfeng 1 tuần trước cách đây
mục cha
commit
09ccf1c556

+ 1 - 1
game-back/game-back-serve/src/main/java/com/zanxiang/game/back/serve/GameBackApplication.java

@@ -18,7 +18,7 @@ public class GameBackApplication {
 
     public static void main(String[] args) {
         SpringApplication.run(GameBackApplication.class, args);
-        System.out.println("星广联投回传逻辑对接 (´・・)ノ(._.`)  \n" +
+        System.out.println("星广联投回传逻辑对接-01 (´・・)ノ(._.`)  \n" +
                 " ______  __     __     \n" +
                 "/_____/\\/__/\\ /__/\\    \n" +
                 "\\:::__\\/\\ \\::\\\\:.\\ \\   \n" +

+ 3 - 1
game-back/game-back-serve/src/main/java/com/zanxiang/game/back/serve/rpc/impl/TtAppBackRpcImpl.java

@@ -291,7 +291,9 @@ public class TtAppBackRpcImpl implements ITtAppBackRpc {
 
         //星广联投回传 -> 付费
         try {
-            gameOceanengineAppCallbackXgltService.orderPayBack(orderLog, orderBackQueryRpcVO);
+            if (Objects.equals(orderBackQueryRpcVO.getDoBack(), Boolean.TRUE)) {
+                gameOceanengineAppCallbackXgltService.orderPayBack(orderLog, orderBackQueryRpcVO);
+            }
         } catch (Exception ignored) {
         }
 

+ 0 - 4
game-back/game-back-serve/src/main/java/com/zanxiang/game/back/serve/service/impl/GameOceanengineAppCallbackXgltServiceImpl.java

@@ -213,10 +213,6 @@ public class GameOceanengineAppCallbackXgltServiceImpl extends ServiceImpl<GameO
     @Async
     @Override
     public void orderPayBack(GameOceanengineAppOrderLog orderLog, OrderBackQueryRpcVO orderBackQueryRpcVO) {
-        //订单不回传, 跳过
-        if (!Objects.equals(orderBackQueryRpcVO.getDoBack(), Boolean.TRUE)) {
-            return;
-        }
         //判断是否关联星广联投, 未关联, 跳过
         Tuple2<Long, String> tuple2 = this.getCallBackParam(orderLog.getGameId(), orderLog.getUserId(), orderLog.getAccountId());
         if (tuple2 == null) {