lrf402788946 4 anos atrás
pai
commit
a3574ecf29
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      app/service/wxpay.js

+ 2 - 1
app/service/wxpay.js

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