|
@@ -100,6 +100,7 @@ class TrainliveService extends CrudService {
|
|
|
if (is_login) throw new BusinessError(ErrorCode.BUSINESS, '用户已登录');
|
|
|
if (user.user_password !== user_password) throw new BusinessError(ErrorCode.BAD_PASSWORD, '用户密码错误!');
|
|
|
await this.app.redis.set(`trainlive/${user._id}`, user);
|
|
|
+ return user;
|
|
|
}
|
|
|
|
|
|
/**
|