Commit ed93d6bc by 冷斌

fix bug

parent a3d841cc
...@@ -186,10 +186,16 @@ class Api_Charge extends PhalApi_Api { ...@@ -186,10 +186,16 @@ class Api_Charge extends PhalApi_Api {
'notify_url' => 'http://www.seals-live.com/index.php?g=Appapi&m=pay&a=notify_wx', 'notify_url' => 'http://www.seals-live.com/index.php?g=Appapi&m=pay&a=notify_wx',
] ]
]; ];
var_dump($wx_config);
die;
$wx = new \Yansongda\Pay\Pay($wx_config); $wx = new \Yansongda\Pay\Pay($wx_config);
$data = $wx->app($orderid); $data = $wx->app([
'out_trade_no' => $orderid,
"body" => "充值{$coin}虚拟币",
"total_fee" => $money*100,
"trade_type" => "APP"
]);
var_dump($wx_config, $data);
die;
$rs['info'][0]=json_decode($data, true); $rs['info'][0]=json_decode($data, true);
return $rs; return $rs;
} }
......
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