guhongwei 3 年之前
父節點
當前提交
595afd45bf
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      app/service/users/personal.js

+ 6 - 6
app/service/users/personal.js

@@ -91,12 +91,12 @@ class PersonalService extends CrudService {
     return token;
   }
 
-  async delete({ id }) {
-    const object = await this.model.findById(id);
-    if (!object) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到用户的信息');
-    object.isdel = '1';
-    await object.save();
-  }
+  // async delete({ id }) {
+  //   const object = await this.model.findById(id);
+  //   if (!object) throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '未找到用户的信息');
+  //   object.isdel = '1';
+  //   await object.save();
+  // }
   /**
    * 个人升变专家
    * @param {Object} body 升变数据