mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
[更新]修正函数名称
This commit is contained in:
parent
0c1e64f220
commit
83eba868be
@ -42,7 +42,7 @@ class App extends BasicAliPay
|
|||||||
*/
|
*/
|
||||||
public function apply($options)
|
public function apply($options)
|
||||||
{
|
{
|
||||||
$this->buildData($options);
|
$this->applyData($options);
|
||||||
return http_build_query($this->options->get());
|
return http_build_query($this->options->get());
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -41,7 +41,7 @@ class Wap extends BasicAliPay
|
|||||||
*/
|
*/
|
||||||
public function apply($options)
|
public function apply($options)
|
||||||
{
|
{
|
||||||
parent::buildData($options);
|
parent::applyData($options);
|
||||||
return $this->buildPayHtml();
|
return $this->buildPayHtml();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -41,7 +41,7 @@ class Web extends BasicAliPay
|
|||||||
*/
|
*/
|
||||||
public function apply($options)
|
public function apply($options)
|
||||||
{
|
{
|
||||||
parent::buildData($options);
|
parent::applyData($options);
|
||||||
return $this->buildPayHtml();
|
return $this->buildPayHtml();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -175,7 +175,7 @@ abstract class BasicAliPay
|
|||||||
* 数据包生成及数据签名
|
* 数据包生成及数据签名
|
||||||
* @param array $options
|
* @param array $options
|
||||||
*/
|
*/
|
||||||
protected function buildData($options)
|
protected function applyData($options)
|
||||||
{
|
{
|
||||||
$this->options['biz_content'] = json_encode($options, JSON_UNESCAPED_UNICODE);
|
$this->options['biz_content'] = json_encode($options, JSON_UNESCAPED_UNICODE);
|
||||||
$this->options['sign'] = $this->getSign();
|
$this->options['sign'] = $this->getSign();
|
||||||
@ -189,7 +189,7 @@ abstract class BasicAliPay
|
|||||||
*/
|
*/
|
||||||
protected function getResult($options)
|
protected function getResult($options)
|
||||||
{
|
{
|
||||||
$this->buildData($options);
|
$this->applyData($options);
|
||||||
$data = json_decode(Tools::post($this->gateway, $this->options->get()), true);
|
$data = json_decode(Tools::post($this->gateway, $this->options->get()), true);
|
||||||
$method = str_replace('.', '_', $this->options['method']) . '_response';
|
$method = str_replace('.', '_', $this->options['method']) . '_response';
|
||||||
if (!isset($data[$method]['code']) || $data[$method]['code'] !== '10000') {
|
if (!isset($data[$method]['code']) || $data[$method]['code'] !== '10000') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user