|
|
|
@ -445,8 +445,9 @@ class Auth extends BaseController |
|
|
|
|
$repository->syncBaseAuth($auth, $user); |
|
|
|
|
} |
|
|
|
|
$user = $repository->mainUser($user); |
|
|
|
|
$repository->bindSpread($user, intval($data['spread']), 1); |
|
|
|
|
|
|
|
|
|
if(!empty($data['spread'])){ |
|
|
|
|
$repository->bindSpread($user, intval($data['spread']), 1); |
|
|
|
|
} |
|
|
|
|
$tokenInfo = $repository->createToken($user); |
|
|
|
|
$repository->loginAfter($user); |
|
|
|
|
//上级获得推荐分 |
|
|
|
|