Skip to content

Commit

Permalink
当面付(条码支付)
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemao authored Jun 1, 2020
1 parent 26c9926 commit 79d1fa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions barcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AlipayService

public function __construct()
{
$this->charset = 'utf8';
$this->charset = 'utf-8';
}

public function setAppid($appid)
Expand Down Expand Up @@ -108,7 +108,7 @@ public function doPay()
'biz_content'=>json_encode($requestConfigs),
);
$commonConfigs["sign"] = $this->generateSign($commonConfigs, $commonConfigs['sign_type']);
$result = $this->curlPost('https://openapi.alipay.com/gateway.do',$commonConfigs);
$result = $this->curlPost('https://openapi.alipay.com/gateway.do?charset='.$this->charset,$commonConfigs);
$result = iconv('GBK','UTF-8',$result);
return json_decode($result,true);
}
Expand Down

0 comments on commit 79d1fa9

Please sign in to comment.