lrf402788946 4 years ago
parent
commit
9def73229b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/service/trainlive.js

+ 1 - 0
app/service/trainlive.js

@@ -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;
   }
 
   /**