lrf402788946 hace 4 años
padre
commit
9def73229b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;
   }
 
   /**