Commit e8adf203 by 冷斌

fix bug

parent abe73b4a
...@@ -191,12 +191,11 @@ class Api_Charge extends PhalApi_Api { ...@@ -191,12 +191,11 @@ class Api_Charge extends PhalApi_Api {
ini_set("display_errors", On); ini_set("display_errors", On);
ini_set("error_reporting", E_ALL); ini_set("error_reporting", E_ALL);
$wx = new \Yansongda\Pay\Pay($wx_config); $wx = new \Yansongda\Pay\Pay($wx_config);
var_dump($_SERVER["REMOTE_ADDR"]);
$data = $wx->driver('wechat')->gateway('app')->pay([ $data = $wx->driver('wechat')->gateway('app')->pay([
'out_trade_no' => $orderid, 'out_trade_no' => $orderid,
"body" => "充值{$coin}虚拟币", "body" => "充值{$coin}虚拟币",
"total_fee" => $money*100, "total_fee" => $money*100,
"spbill_create_ip" => "47.108.74.79" "spbill_create_ip" => $_SERVER["REMOTE_ADDR"]
]); ]);
var_dump($wx_config, $data); var_dump($wx_config, $data);
die; die;
......
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