问题修复

main
limu 9 months ago
parent e5dee1b9da
commit 5fd2c5b29f
  1. 5
      app/controller/api/Auth.php

@ -445,8 +445,9 @@ class Auth extends BaseController
$repository->syncBaseAuth($auth, $user); $repository->syncBaseAuth($auth, $user);
} }
$user = $repository->mainUser($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); $tokenInfo = $repository->createToken($user);
$repository->loginAfter($user); $repository->loginAfter($user);
//上级获得推荐分 //上级获得推荐分

Loading…
Cancel
Save