|
|
|
@ -86,7 +86,7 @@ class AccountController extends AbstractController
|
|
|
|
|
if (md5($password . $account->salt) != $account->password) {
|
|
|
|
|
throw new BusinessException('账号或密码错误');
|
|
|
|
|
}
|
|
|
|
|
$userInfo = json_encode(['userId' => $account->account_id]);
|
|
|
|
|
$userInfo = json_encode(['userId' => $account->id]);
|
|
|
|
|
$token = StringHelper::getRandomString(16);
|
|
|
|
|
Redis::set(RedisKey::getUserTokenKey($token), $userInfo);
|
|
|
|
|
Redis::expire(RedisKey::getUserTokenKey($token), 3600);
|
|
|
|
|