소스 검색

转赠限制

xiongzhu 4 년 전
부모
커밋
9b9ac03bf8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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("不能送给自己");