Bladeren bron

转赠限制

xiongzhu 4 jaren geleden
bovenliggende
commit
9b9ac03bf8
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/main/java/com/izouma/nineth/service/GiftOrderService.java

+ 1 - 1
src/main/java/com/izouma/nineth/service/GiftOrderService.java

@@ -77,7 +77,7 @@ public class GiftOrderService {
         }
         }
         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 + "天才能转赠");
         }
         }
         if (toUserId.equals(userId)) {
         if (toUserId.equals(userId)) {
             throw new BusinessException("不能送给自己");
             throw new BusinessException("不能送给自己");