Commit 0f31e955 by 冷斌

fix bug

parent 8d098fdb
...@@ -31,7 +31,7 @@ class RechangeController extends HomebaseController ...@@ -31,7 +31,7 @@ class RechangeController extends HomebaseController
'appSecret' => '7f8291af4e0795ee375f66487a721627', // 公众号 秘钥 'appSecret' => '7f8291af4e0795ee375f66487a721627', // 公众号 秘钥
'mch_id' => '1587472431', // 商户号 id 'mch_id' => '1587472431', // 商户号 id
'key' => 'hkLfAAmPx6TxsinuyciefzFivk6yE4r4', // 商户 key 'key' => 'hkLfAAmPx6TxsinuyciefzFivk6yE4r4', // 商户 key
'notify_url' => 'http://' . $_SERVER['HTTP_HOST'] . '/wxpay/notify_url.php', 'notify_url' => 'http://'.$_SERVER['HTTP_HOST'].'/wxpay/pay/notify_jsapi.php',
// 'cert_client' => __DIR__ . '/apiclient_cert.pem', // optional, 退款,红包等情况时需要用到 // 'cert_client' => __DIR__ . '/apiclient_cert.pem', // optional, 退款,红包等情况时需要用到
// 'cert_key' => __DIR__ . '/apiclient_key.pem',// optional, 退款,红包等情况时需要用到 // 'cert_key' => __DIR__ . '/apiclient_key.pem',// optional, 退款,红包等情况时需要用到
], ],
...@@ -104,6 +104,8 @@ class RechangeController extends HomebaseController ...@@ -104,6 +104,8 @@ class RechangeController extends HomebaseController
public function wx() public function wx()
{ {
var_dump($this->getPayConfig());
die;
$order = $this->getOrderId(); $order = $this->getOrderId();
if ($order['code'] > 0) { if ($order['code'] > 0) {
echo json_encode(["ret" => $order['code'], 'msg' => $order['msg']]); echo json_encode(["ret" => $order['code'], 'msg' => $order['msg']]);
......
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