Bladeren bron

feat : 回传拆单更改结构06, 解决前端没有订单id调试

bilingfeng 9 maanden geleden
bovenliggende
commit
75d5e7eb24

+ 1 - 1
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/SDKApplication.java

@@ -23,7 +23,7 @@ public class SDKApplication {
 
     public static void main(String[] args) {
         SpringApplication.run(SDKApplication.class, args);
-        System.out.println("赞象SDK服务启动成功 <回传拆单更改结构05> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象SDK服务启动成功 <回传拆单更改结构06, 解决前端没有订单id调试> ( ´・・)ノ(._.`) \n" +
                 " ___________ _   __\n" +
                 "/  ___|  _  \\ | / /\n" +
                 "\\ `--.| | | | |/ / \n" +

+ 3 - 1
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/service/impl/CallBackServiceImpl.java

@@ -96,7 +96,9 @@ public class CallBackServiceImpl implements ICallBackService {
             resultMap.put("amount", amountList);
             if (Objects.equals(callBackTypeEnum, CallBackTypeEnum.CALL_BACK_PAY_ORDER)) {
                 PlatformOrderDTO platformOrderDTO = orderService.getByOrderId(param.getOrderId());
-                resultMap.put("amount", Collections.singletonList(platformOrderDTO.getAmount()));
+                if (platformOrderDTO != null) {
+                    resultMap.put("amount", Collections.singletonList(platformOrderDTO.getAmount()));
+                }
             }
             return resultMap;
         }