|
@@ -690,8 +690,8 @@ class UserBillServices extends BaseServices
|
|
|
$userService = app()->make(UserServices::class);
|
|
$userService = app()->make(UserServices::class);
|
|
|
$user = $userService->getUserInfo($uid);
|
|
$user = $userService->getUserInfo($uid);
|
|
|
$to_user = $userService->getUserInfo($to_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);
|
|
$switch = sys_config('shop_integral_trade_switch', 1);
|
|
|
$commission = sys_config('shop_integral_trade_commission', 8);
|
|
$commission = sys_config('shop_integral_trade_commission', 8);
|
|
|
if ($user['is_shop']) $commission = sys_config('shop_integral_trade_commission_shop', 3);
|
|
if ($user['is_shop']) $commission = sys_config('shop_integral_trade_commission_shop', 3);
|