Kirin 1 anno fa
parent
commit
3472af3af8
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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);