liuyu 5 yıl önce
ebeveyn
işleme
7da040d473
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app/service/user.js

+ 1 - 1
app/service/user.js

@@ -104,7 +104,7 @@ class UserService extends CrudService {
   // 其他用户绑定
   async userbind(data) {
     const { openid, uid, type } = data;
-    assert(openid && uid && type, '缺少部分信息项');
+    assert(openid && uid, '缺少部分信息项');
     const user = await this.model.findById(uid);
     if (!user) {
       throw new BusinessError(ErrorCode.USER_NOT_EXIST);