diff --git a/WeChat/Pay.php b/WeChat/Pay.php index 062afdb..9045c00 100644 --- a/WeChat/Pay.php +++ b/WeChat/Pay.php @@ -76,7 +76,7 @@ class Pay extends BasicWePay $pay = new Order($this->config->get()); return $pay->qrcParams($product_id); } - + /** * 查询订单 * @param array $options diff --git a/WePay/Order.php b/WePay/Order.php index d20a318..2b4a1f5 100644 --- a/WePay/Order.php +++ b/WePay/Order.php @@ -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;