|
@@ -31,7 +31,7 @@ class AliPay implements PayMerchantInterface
|
|
$this->aop->alipayrsaPublicKey = self::ALIPAYRSAPUBLICKEY;
|
|
$this->aop->alipayrsaPublicKey = self::ALIPAYRSAPUBLICKEY;
|
|
$this->aop->signType = self::SIGN_TYPE;
|
|
$this->aop->signType = self::SIGN_TYPE;
|
|
$this->aop->gatewayUrl = self::GATE_WAY_URL;
|
|
$this->aop->gatewayUrl = self::GATE_WAY_URL;
|
|
- $this->aop->postCharset = 'GBK';
|
|
|
|
|
|
+ // $this->aop->postCharset = 'GBK';
|
|
$this->aop->format = 'json';
|
|
$this->aop->format = 'json';
|
|
}
|
|
}
|
|
|
|
|
|
@@ -86,7 +86,7 @@ class AliPay implements PayMerchantInterface
|
|
|
|
|
|
public function query(string $trade_no)
|
|
public function query(string $trade_no)
|
|
{
|
|
{
|
|
- $this->aop->postCharset = 'utf-8';
|
|
|
|
|
|
+ // $this->aop->postCharset = 'utf-8';
|
|
$request = new \AlipayTradeQueryRequest();
|
|
$request = new \AlipayTradeQueryRequest();
|
|
$request->setBizContent(json_encode(['out_trade_no' => $trade_no]));
|
|
$request->setBizContent(json_encode(['out_trade_no' => $trade_no]));
|
|
$result = $this->aop->execute($request);
|
|
$result = $this->aop->execute($request);
|