瀏覽代碼

feat : 回传拆单更改结构03

bilingfeng 11 月之前
父節點
當前提交
651e3835be

+ 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服务启动成功 <回传拆单更改结构02> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象SDK服务启动成功 <回传拆单更改结构03> ( ´・・)ノ(._.`) \n" +
                 " ___________ _   __\n" +
                 "/  ___|  _  \\ | / /\n" +
                 "\\ `--.| | | | |/ / \n" +

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

@@ -26,7 +26,6 @@ import org.apache.logging.log4j.util.Strings;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
-import java.math.BigDecimal;
 import java.time.LocalDateTime;
 import java.util.*;
 import java.util.concurrent.TimeUnit;
@@ -85,10 +84,10 @@ public class CallBackServiceImpl implements ICallBackService {
         resultMap.put("gameId", userData.getGameId());
 
 
-        List<BigDecimal> amountList = new ArrayList<>();
-        amountList.add(new BigDecimal("10.00"));
-        amountList.add(new BigDecimal("20.00"));
-        amountList.add(new BigDecimal("30.00"));
+        List<Integer> amountList = new ArrayList<>();
+        amountList.add(10);
+        amountList.add(20);
+        amountList.add(30);
         resultMap.put("amount", amountList);
 
 
@@ -174,6 +173,7 @@ public class CallBackServiceImpl implements ICallBackService {
                 resultMap.put("callBack", orderBackQueryRpcVO.getDoBack());
                 resultMap.put("backMsg", orderBackQueryRpcVO.getBackMsg());
                 if (Objects.equals(orderBackQueryRpcVO.getDoBack(), Boolean.TRUE)) {
+
                     resultMap.put("amount", orderBackQueryRpcVO.getBackMoney());
                 }
                 break;