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') {