Browse Source

会员升级

Kirin 1 năm trước cách đây
mục cha
commit
3472af3af8
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/services/user/UserBillServices.php

+ 2 - 2
app/services/user/UserBillServices.php

@@ -690,8 +690,8 @@ class UserBillServices extends BaseServices
         $userService = app()->make(UserServices::class);
         $user = $userService->getUserInfo($uid);
         $to_user = $userService->getUserInfo($to_uid);
-//        if ($user['is_shop'] && $to_user['is_shop']) throw new ValidateException('商家只可转给用户');
-//        if (!$user['is_shop'] && !$to_user['is_shop']) throw new ValidateException('用户只可转给商家');
+        if ($user['is_shop'] && $to_user['is_shop']) throw new ValidateException('商家只可转给用户');
+        if (!$user['is_shop'] && !$to_user['is_shop']) throw new ValidateException('用户只可转给商家');
         $switch = sys_config('shop_integral_trade_switch', 1);
         $commission = sys_config('shop_integral_trade_commission', 8);
         if ($user['is_shop']) $commission = sys_config('shop_integral_trade_commission_shop', 3);