Commit 10a5804c by 冷斌

fix bug

parent 92ffbcb9
...@@ -94,15 +94,16 @@ class Api_Charge extends PhalApi_Api { ...@@ -94,15 +94,16 @@ class Api_Charge extends PhalApi_Api {
return $rs; return $rs;
} }
require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php'; require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
var_dump(1); $wx_config = [
$wx = \Yansongda\Pay\Pay::wechat([
'appid' => $configpri['wx_appid'], 'appid' => $configpri['wx_appid'],
'appSecret' => $configpri['wx_appsecret'], 'appSecret' => $configpri['wx_appsecret'],
'mch_id' => $configpri['wx_mchid'], 'mch_id' => $configpri['wx_mchid'],
'key' => $configpri['wx_key'], 'key' => $configpri['wx_key'],
'notify_url' => $configpub['site'].'/index.php?g=Appapi&m=pay&a=notify_wx', 'notify_url' => $configpub['site'].'/index.php?g=Appapi&m=pay&a=notify_wx',
]); ];
var_dump(get_class_methods($wx)); var_dump($wx_config);
$wx = \Yansongda\Pay\Pay::wechat($wx_config);
var_dump($wx);
die; die;
$orderinfo=array( $orderinfo=array(
......
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