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 4717460 commit f445fc5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions settle.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class AlipayService

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

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

0 comments on commit f445fc5

Please sign in to comment.