pay debug

feat/task1-c-wallet
devil_gong 2019-01-07 15:52:06 +08:00
parent 7c1b3ed01f
commit 2d3b368769
2 changed files with 2 additions and 1 deletions

View File

@ -113,6 +113,7 @@ class OrderService
'total_price' => $order['total_price'],
'notify_url' => $url.'_notify.php',
'call_back_url' => $call_back_url,
'site_name' => MyC('home_seo_site_title', 'ShopXO', true),
);
$pay_name = 'payment\\'.$payment[0]['payment'];
$ret = (new $pay_name($payment[0]['config']))->Pay($pay_data);

View File

@ -202,7 +202,7 @@ class WeixinMini
$data = [
'appid' => $this->config['appid'],
'mch_id' => $this->config['mch_id'],
'body' => $params['name'],
'body' => $params['site_name'].'-'.$params['name'],
'nonce_str' => md5(time().rand().$params['order_no']),
'notify_url' => $params['notify_url'],
'openid' => $params['user_openid'],