Selaa lähdekoodia

删除专辑曲目增加限制

Eric 2 vuotta sitten
vanhempi
commit
618c7af231

+ 2 - 2
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicAlbumServiceImpl.java

@@ -208,7 +208,7 @@ public class MusicAlbumServiceImpl extends ServiceImpl<MusicAlbumDao,MusicAlbum>
         }
 
         // 付费专辑最多只能添加两首免费曲目
-        if (!ChargeTypeEnum.FREE.match(musicAlbum.getPaymentType())) {
+        /*if (!ChargeTypeEnum.FREE.match(musicAlbum.getPaymentType())) {
 
             // 新添加曲目统计
             long freeNum = 0;
@@ -229,7 +229,7 @@ public class MusicAlbumServiceImpl extends ServiceImpl<MusicAlbumDao,MusicAlbum>
             if ((collect.getOrDefault(albumId, 0) + freeNum) > 2) {
                 throw new BizException("专辑免费曲目最多2首");
             }
-        }
+        }*/
 
         return albumMusicRelateService.addMusicSheet(albumId,albumMusicList,userId);
     }