Selaa lähdekoodia

1导入激活码提示优化

yuanliang 1 vuosi sitten
vanhempi
commit
e6f90ed5c0

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/TenantActivationCodeServiceImpl.java

@@ -532,7 +532,7 @@ public class TenantActivationCodeServiceImpl extends ServiceImpl<TenantActivatio
                     return tenantActivationCode;
                 }).collect(Collectors.toList());
         if (tenantActivationCodes.isEmpty()) {
-            throw new BizException("没有合法的导入数据");
+            return HttpResponseResult.failed(500, null, "没有合法的导入数据");
         }
         this.updateBatchById(tenantActivationCodes, 50);
         return HttpResponseResult.succeed();