Ver código fonte

转赠限制

xiongzhu 4 anos atrás
pai
commit
9b9ac03bf8

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

@@ -77,7 +77,7 @@ public class GiftOrderService {
         }
         int holdDays = sysConfigService.getInt("hold_days");
         if (ChronoUnit.DAYS.between(asset.getCreatedAt(), LocalDateTime.now()) < holdDays) {
-            throw new BusinessException("需持有满" + holdDays + "天才能寄售上架");
+            throw new BusinessException("需持有满" + holdDays + "天才能转赠");
         }
         if (toUserId.equals(userId)) {
             throw new BusinessException("不能送给自己");