dos 1 месяц назад
Родитель
Сommit
4f17b4cdf1

+ 1 - 1
game-business/src/main/java/com/game/business/service/impl/FinTranRecordServiceImpl.java

@@ -267,7 +267,7 @@ public class FinTranRecordServiceImpl extends ServiceImpl<FinTranRecordMapper, F
 
         String userIds = configService.selectConfigByKey("system.transer.userids");
         if(!"-1".equals(userIds)){
-            if(!Arrays.asList(userIds.split(",")).contains(appUser.getUserid())){
+            if(!Arrays.asList(userIds.split(",")).contains(String.valueOf(appUser.getUserid()))){
                 return HttpRet.fail("当前用户无权限转账");
             }
         }