fly před 5 roky
rodič
revize
e144a3a310

+ 0 - 4
app/Http/Controllers/QuickApp/Order/OrdersController.php

@@ -630,10 +630,6 @@ class OrdersController extends BaseController
         $param = $request->except('_url');
         $app = PayFactory::aliPay();
         myLog('alipay')->info($param);
-
-        $param['body'] = iconv('gbk','utf-8',$param['body']);
-        myLog('alipay')->info($param);
-
         if ($app->notify($param)) {
             myLog('alipay')->info('sign success');
             if (OrderPaySuccess::handle($param['out_trade_no'], $param['trade_no'])) {

+ 2 - 2
app/Libs/Pay/Merchants/AliPay.php

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