lrf 2 éve
szülő
commit
5326356137
3 módosított fájl, 3 hozzáadás és 1 törlés
  1. 1 1
      app/service/trade/pay.js
  2. 1 0
      config/config.default.js
  3. 1 0
      config/config.prod.js

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

@@ -10,7 +10,7 @@ class PayService extends CrudService {
   constructor(ctx) {
     super(ctx, 'pay');
     this.httpUtil = this.ctx.service.util.httpUtil;
-    this.appConfig = 'pointApp';
+    this.appConfig = this.app.config.wxPayConfig;
     this.orderModel = this.ctx.model.Trade.Order;
     this.dictDataModel = this.ctx.model.Dev.DictData;
     this.payOrderReturnUrl = this.app.config.payReturn.order;

+ 1 - 0
config/config.default.js

@@ -95,6 +95,7 @@ module.exports = appInfo => {
   config.errcode = {
     groupJoinRefund: -111,
   };
+  config.wxPayConfig = 'pointApp';
   return {
     ...config,
     ...userConfig,

+ 1 - 0
config/config.prod.js

@@ -20,6 +20,7 @@ module.exports = appInfo => {
   config.smsConfig = {
     config: 'tehq',
   };
+  config.wxPayConfig = 'tnhqApp';
   return {
     ...config,
   };