Browse Source

会员升级

Kirin 1 year ago
parent
commit
d11919e497
1 changed files with 2 additions and 2 deletions
  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);