Browse Source

fix:测试

super-yimizi 1 month ago
parent
commit
ea58a1cb0e

+ 1 - 1
addons/alioss/config.php

@@ -69,7 +69,7 @@ return [
             'client' => '客户端直传(速度快,无备份)',
             'server' => '服务器中转(占用服务器带宽,可备份)',
         ],
-        'value' => 'client',
+        'value' => 'server',
         'rule' => '',
         'msg' => '',
         'tip' => '',

+ 0 - 1
application/api/controller/Pay.php

@@ -27,7 +27,6 @@ class Pay extends Base
     public function _initialize()
     {
         parent::_initialize();
-        //set_addon_config('epay', ['version'=>'v3'], false);
     }
 
      /**

+ 1 - 1
application/common/Service/Pay/Provider/Base.php

@@ -73,7 +73,7 @@ class Base
         // echo "<pre>";
         // print_r($this->config);
         // echo "</pre>";
-        // exit;
+        // die();
         $this->pay = Pay::config($this->config);
         Pay::set(HttpClientInterface::class, HttpClient::instance());       // 使用自定义 client (也继承至 GuzzleHttp\Client)
        

+ 4 - 3
application/common/Service/Pay/Provider/Wechat.php

@@ -334,9 +334,10 @@ class Wechat extends Base
         $config['notify_url'] = request()->domain() . '/api/pay/notify/payment/wechat/platform/' . $this->platform;
         // $config['mch_secret_cert'] = cdnurl($config['mch_secret_cert'], true);
         // $config['mch_public_cert_path'] = cdnurl($config['mch_public_cert_path'], true);
-        $config['mch_secret_cert'] = ROOT_PATH . 'public/apiclient_cert.pem';
-        $config['mch_public_cert_path'] = ROOT_PATH . 'public/apiclient_key.pem';
-
+        // // $config['mch_secret_cert'] = ROOT_PATH . 'public/apiclient_cert.pem';
+        // // $config['mch_public_cert_path'] = ROOT_PATH . 'public/apiclient_key.pem';
+        $config['mch_secret_cert'] = ROOT_PATH . 'public' . $config['mch_secret_cert'];
+        $config['mch_public_cert_path'] = ROOT_PATH . 'public' . $config['mch_public_cert_path'];
         // 可手动配置微信支付公钥证书
         $config['wechat_public_cert_id'] = $config['wechat_public_cert_id'] ?? '';
         $config['wechat_public_cert'] = $config['wechat_public_cert'] ?? '';