moonsflyer 7 mesiacov pred
rodič
commit
ddb79a5059

+ 2 - 1
app/common/service/pay/WeChatPayService.php

@@ -138,10 +138,11 @@ class WeChatPayService extends BasePayService
      */
     public function jsapiPay($from, $order, $appId)
     {
+        //$this->payDesc($from)
         $response = $this->app->getClient()->postJson("v3/pay/transactions/jsapi", [
             "appid" => $appId,
             "mchid" => $this->config['mch_id'],
-            "description" => $this->payDesc($from),
+            "description" => $order['desc'],
             "out_trade_no" => $order['pay_sn'],
             "notify_url" => $this->config['notify_url'],
             "amount" => [