Ver Fonte

Merge branch 'feature/0925_opt'

liujc há 2 anos atrás
pai
commit
6881b5ce38

+ 2 - 2
cooleshow-user/user-admin/src/main/java/com/yonge/cooleshow/admin/controller/TenantAlbumController.java

@@ -197,7 +197,7 @@ public class TenantAlbumController {
             List<Long> musicIds = album.getMusicSheetData().stream().flatMap(o -> o.getMusicSheetList().stream().map(m -> m.getId())).collect(Collectors.toList());
             Set<Long> musicSet = new HashSet<>(musicIds);
             if (musicSet.size() < musicIds.size()) {
-                throw new BizException("不予许添加相同的曲目");
+                throw new BizException("不添加相同的曲目");
             }
         }
 
@@ -246,7 +246,7 @@ public class TenantAlbumController {
                     .stream().map(TenantAlbumVo.MusicObject::getId)).collect(Collectors.toList());
             Set<Long> musicSet = new HashSet<>(musicIds);
             if (musicSet.size() < musicIds.size()) {
-                throw new BizException("不予许添加相同的曲目");
+                throw new BizException("不添加相同的曲目");
             }
         }
 

+ 2 - 2
cooleshow-user/user-tenant/src/main/java/com/yonge/cooleshow/tenant/controller/open/OpenTenantController.java

@@ -74,9 +74,9 @@ public class OpenTenantController {
         // 根据手机号 判断是否已经有机构账户
         TenantStaff tenantStaff = tenantStaffService.getByPhone(phone);
         if (tenantStaff != null) {
-            throw new BizException("该手机号已经有机构账号");
+            return HttpResponseResult.status(true);
         }
-        return HttpResponseResult.status(true);
+        return HttpResponseResult.status(false);
     }