|
|
@@ -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 + "天才能寄售上架");
|