15954078560 3 سال پیش
والد
کامیت
1edad01931
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 3 3
      addons/epay/config.php
  2. 1 1
      application/api/controller/Money.php

+ 3 - 3
addons/epay/config.php

@@ -7,12 +7,12 @@ return [
         'type' => 'array',
         'content' => [],
         'value' => [
-            'appid' => '',
+            'appid' => 'wx566de30d10f8ea7f',
             'app_id' => '',
             'app_secret' => '',
             'miniapp_id' => '',
-            'mch_id' => '',
-            'key' => '',
+            'mch_id' => '1624477512',
+            'key' => 'i900uFy4cQvsGzcAD0xXyajXUjfsmsRd',
             'mode' => 'normal',
             'sub_mch_id' => '',
             'sub_appid' => '',

+ 1 - 1
application/api/controller/Money.php

@@ -29,7 +29,7 @@ class Money extends Common
         if(!in_array($purpose,[1,2,3,4]) || !in_array($type,['wechat','alipay'])) {
             $this->error(__('Invalid parameters'));
         }
-        if($type == 'wechat') $this->error(__('微信支付暂未开通!请选择支付宝支付!'));
+//        if($type == 'wechat') $this->error(__('微信支付暂未开通!请选择支付宝支付!'));
         $user_id = $this->auth->id;
         $fate_user_id = 0;
         $vip_config_id = 0;