lrf402788946 4 년 전
부모
커밋
b8ee8d52d4
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/service/wxpay.js

+ 3 - 1
app/service/wxpay.js

@@ -91,7 +91,9 @@ class WxpayService extends CrudService {
       const word = '用户减掉已转出积分失败!钱已转出;提现记录已添加';
       const word = '用户减掉已转出积分失败!钱已转出;提现记录已添加';
       throw new BusinessError(ErrorCode.SERVICE_FAULT, word);
       throw new BusinessError(ErrorCode.SERVICE_FAULT, word);
     }
     }
-    return await this.model.findById(id);
+    const newUser = await this.model.findById(id);
+    const { meta, __v, ...userInfo } = newUser;
+    return userInfo;
   }
   }
 
 
   turnToSign(object) {
   turnToSign(object) {