lrf 2 years ago
parent
commit
547e779403
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/trade/pay.js

+ 1 - 1
app/service/trade/pay.js

@@ -206,8 +206,8 @@ class PayService extends CrudService {
     const wxOrderData = { config: this.appConfig, money, openid, order_no, desc, notice_url };
     const url = `${this.wxDomain}/pay/payOrder`;
     const res = await this.httpUtil.cpost(url, wxOrderData);
-    if (res) return res;
     console.log(data);
+    if (res) return res;
     throw new BusinessError(ErrorCode.SERVICE_FAULT, '微信下单失败!');
   }