Bläddra i källkod

fix : SDK新增提现记录提交接口

bilingfeng 1 år sedan
förälder
incheckning
b3a343b0e4

+ 1 - 2
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/pojo/param/GameRemitLogParam.java

@@ -4,7 +4,6 @@ import lombok.Data;
 
 import javax.validation.constraints.NotBlank;
 import javax.validation.constraints.NotNull;
-import java.time.LocalDateTime;
 
 /**
  * @author : lingfeng
@@ -54,7 +53,7 @@ public class GameRemitLogParam {
      * 提现时间
      */
     @NotNull(message = "提现时间不可为空")
-    private LocalDateTime createdTime;
+    private Long createdTime;
 
     /**
      * 加密标识

+ 3 - 2
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/service/impl/GameRemitLogServiceImpl.java

@@ -10,6 +10,7 @@ import com.zanxiang.game.module.sdk.pojo.param.GameRemitLogParam;
 import com.zanxiang.game.module.sdk.service.IGameExtService;
 import com.zanxiang.game.module.sdk.service.IGameRemitLogService;
 import com.zanxiang.game.module.sdk.util.SignUtil;
+import com.zanxiang.module.util.DateUtil;
 import com.zanxiang.module.util.exception.BaseException;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -64,7 +65,7 @@ public class GameRemitLogServiceImpl extends ServiceImpl<GameRemitLogMapper, Gam
             gameRemitLog.setAmount(param.getAmount());
             gameRemitLog.setPayPlatform(PayWayEnum.getKeyByPayWayId(param.getPayPlatform()));
             gameRemitLog.setPayAccount(param.getPayAccount());
-            gameRemitLog.setCreatedTime(param.getCreatedTime());
+            gameRemitLog.setCreatedTime(DateUtil.milliToLocalDateTime(param.getCreatedTime()));
             gameRemitLog.setUpdateTime(LocalDateTime.now());
         }
         return super.saveOrUpdate(gameRemitLog);
@@ -78,7 +79,7 @@ public class GameRemitLogServiceImpl extends ServiceImpl<GameRemitLogMapper, Gam
                 .amount(param.getAmount())
                 .payPlatform(PayWayEnum.getKeyByPayWayId(param.getPayPlatform()))
                 .payAccount(param.getPayAccount())
-                .createdTime(param.getCreatedTime())
+                .createdTime(DateUtil.milliToLocalDateTime(param.getCreatedTime()))
                 .createTime(LocalDateTime.now())
                 .updateTime(LocalDateTime.now())
                 .build();