Commit 34e3526d by 冷斌

fix bug

parent ad4b3c5f
...@@ -93,7 +93,6 @@ class Api_Charge extends PhalApi_Api { ...@@ -93,7 +93,6 @@ class Api_Charge extends PhalApi_Api {
$rs['msg'] = '微信未配置'; $rs['msg'] = '微信未配置';
return $rs; return $rs;
} }
require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
$wx_config = [ $wx_config = [
'appid' => $configpri['wx_appid'], 'appid' => $configpri['wx_appid'],
'appSecret' => $configpri['wx_appsecret'], 'appSecret' => $configpri['wx_appsecret'],
...@@ -103,6 +102,7 @@ class Api_Charge extends PhalApi_Api { ...@@ -103,6 +102,7 @@ class Api_Charge extends PhalApi_Api {
]; ];
// var_dump($wx_config); // var_dump($wx_config);
try{ try{
require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
$wx = \Yansongda\Pay\Pay::wechat($wx_config); $wx = \Yansongda\Pay\Pay::wechat($wx_config);
var_dump($wx); var_dump($wx);
}catch (\Exception $exception) { }catch (\Exception $exception) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment