xiongzhu 4 ani în urmă
părinte
comite
ee90bce989
1 a modificat fișierele cu 0 adăugiri și 3 ștergeri
  1. 0 3
      src/main/java/com/izouma/nineth/service/AssetService.java

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