|
@@ -546,7 +546,7 @@ class Auth extends BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public function authLogin()
|
|
|
+ public function authLogin(StorePercentageRepository $store_percentage)
|
|
|
{
|
|
|
$auth = $this->request->param('auth');
|
|
|
$users = $this->authInfo($auth, systemConfig('is_phone_login') !== '1');
|
|
@@ -568,7 +568,7 @@ class Auth extends BaseController
|
|
|
}
|
|
|
$order_id = $auth['auth']['order_id'] ?? 0;
|
|
|
if ($auth['auth']['spread'] ?? 0) {
|
|
|
- $userRepository->bindSpread($user, (int)($auth['auth']['spread']),$order_id);
|
|
|
+ $userRepository->bindSpread($user, (int)($auth['auth']['spread']),$order_id,$store_percentage);
|
|
|
}
|
|
|
$tokenInfo = $userRepository->createToken($user);
|
|
|
$userRepository->loginAfter($user);
|