Sfoglia il codice sorgente

fix : 角色绑定手机号, 判断是否重复操作01

bilingfeng 1 mese fa
parent
commit
f7df9e2905

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

@@ -25,7 +25,7 @@ public class SDKApplication {
 
     public static void main(String[] args) {
         SpringApplication.run(SDKApplication.class, args);
-        System.out.println("赞象SDK服务启动成功 <角色绑定手机号, 判断是否重复操作> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象SDK服务启动成功 <角色绑定手机号, 判断是否重复操作01> ( ´・・)ノ(._.`) \n" +
                 " ___________ _   __\n" +
                 "/  ___|  _  \\ | / /\n" +
                 "\\ `--.| | | | |/ / \n" +

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

@@ -101,7 +101,7 @@ public class SmsServiceImpl implements ISmsService {
         //判断玩家是否已经绑定手机号, 且绑定时间未超过1个月
         if (Strings.isNotBlank(user.getMobile()) && user.getMobileBindTime() != null
                 && ChronoUnit.DAYS.between(user.getMobileBindTime(), LocalDateTime.now()) < 30) {
-            throw new BaseException("玩家已经绑定过手机号, 不可重复操作");
+            return this.buildResultMap(Boolean.FALSE, "玩家已经绑定过手机号, 不可重复操作");
         }
         //校验手机号是否已经绑定了其他账号
         if (userService.count(new LambdaQueryWrapper<User>()