Ver Fonte

会员升级

Kirin há 1 ano atrás
pai
commit
3472af3af8
1 ficheiros alterados com 2 adições e 2 exclusões
  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);