[更新]修正微信App支持

This commit is contained in:
Anyon 2018-12-12 17:59:07 +08:00
parent 365b012ec6
commit 63458d810f
2 changed files with 7 additions and 7 deletions

View File

@ -76,7 +76,7 @@ class Pay extends BasicWePay
$pay = new Order($this->config->get());
return $pay->qrcParams($product_id);
}
/**
* 查询订单
* @param array $options

View File

@ -108,12 +108,12 @@ class Order extends BasicWePay
public function appParams($prepayId)
{
$data = [
'appid' => $this->config->get('appid'),
'partnerid' => $this->config->get('mch_id'),
'prepayid' => (string)$prepayId,
'package' => 'Sign=WXPay',
'time_stamp' => (string)time(),
'nonce_str' => Tools::createNoncestr(),
'appid' => $this->config->get('appid'),
'partnerid' => $this->config->get('mch_id'),
'prepayid' => (string)$prepayId,
'package' => 'Sign=WXPay',
'timestamp' => (string)time(),
'noncestr' => Tools::createNoncestr(),
];
$data['sign'] = $this->getPaySign($data, 'MD5');
return $data;