xiongzhu před 4 roky
rodič
revize
ee90bce989

+ 0 - 3
src/main/java/com/izouma/nineth/service/AssetService.java

@@ -149,9 +149,6 @@ public class AssetService {
         if (!asset.getUserId().equals(SecurityUtils.getAuthenticatedUser().getId())) {
             throw new BusinessException("此藏品不属于你");
         }
-        if (!asset.isCanResale()) {
-            throw new BusinessException("此藏品不可转售");
-        }
         int holdDays = sysConfigService.getInt("hold_days");
         if (ChronoUnit.DAYS.between(asset.getCreatedAt(), LocalDateTime.now()) < holdDays) {
             throw new BusinessException("需持有满" + holdDays + "天才能寄售上架");