lrf402788946 4 年之前
父節點
當前提交
9def73229b
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;
   }
 
   /**