xiongzhu il y a 4 ans
Parent
commit
72c92c3146
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/main/java/com/izouma/nineth/service/GiftOrderService.java

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

@@ -67,7 +67,7 @@ public class GiftOrderService {
         if (!asset.getUserId().equals(userId)) {
         if (!asset.getUserId().equals(userId)) {
             throw new BusinessException("无权限");
             throw new BusinessException("无权限");
         }
         }
-        if (!toUserId.equals(userId)) {
+        if (toUserId.equals(userId)) {
             throw new BusinessException("不能送给自己");
             throw new BusinessException("不能送给自己");
         }
         }
         if (!(asset.getStatus() == AssetStatus.NORMAL)) {
         if (!(asset.getStatus() == AssetStatus.NORMAL)) {