From 83eba868bee15080b43692c4fd7270a0621fdf95 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 30 Oct 2018 18:54:09 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=AD=A3=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AliPay/App.php | 2 +- AliPay/Wap.php | 2 +- AliPay/Web.php | 2 +- WeChat/Contracts/BasicAliPay.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/AliPay/App.php b/AliPay/App.php index 37f10da..f2cf383 100644 --- a/AliPay/App.php +++ b/AliPay/App.php @@ -42,7 +42,7 @@ class App extends BasicAliPay */ public function apply($options) { - $this->buildData($options); + $this->applyData($options); return http_build_query($this->options->get()); } } \ No newline at end of file diff --git a/AliPay/Wap.php b/AliPay/Wap.php index cdd3faf..e97ac94 100644 --- a/AliPay/Wap.php +++ b/AliPay/Wap.php @@ -41,7 +41,7 @@ class Wap extends BasicAliPay */ public function apply($options) { - parent::buildData($options); + parent::applyData($options); return $this->buildPayHtml(); } } \ No newline at end of file diff --git a/AliPay/Web.php b/AliPay/Web.php index cca9720..2ad937c 100644 --- a/AliPay/Web.php +++ b/AliPay/Web.php @@ -41,7 +41,7 @@ class Web extends BasicAliPay */ public function apply($options) { - parent::buildData($options); + parent::applyData($options); return $this->buildPayHtml(); } } \ No newline at end of file diff --git a/WeChat/Contracts/BasicAliPay.php b/WeChat/Contracts/BasicAliPay.php index a549bae..f3b2e62 100644 --- a/WeChat/Contracts/BasicAliPay.php +++ b/WeChat/Contracts/BasicAliPay.php @@ -175,7 +175,7 @@ abstract class BasicAliPay * 数据包生成及数据签名 * @param array $options */ - protected function buildData($options) + protected function applyData($options) { $this->options['biz_content'] = json_encode($options, JSON_UNESCAPED_UNICODE); $this->options['sign'] = $this->getSign(); @@ -189,7 +189,7 @@ abstract class BasicAliPay */ protected function getResult($options) { - $this->buildData($options); + $this->applyData($options); $data = json_decode(Tools::post($this->gateway, $this->options->get()), true); $method = str_replace('.', '_', $this->options['method']) . '_response'; if (!isset($data[$method]['code']) || $data[$method]['code'] !== '10000') {