shish 11 месяцев назад
Родитель
Сommit
73f5cef5a2
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      app-hd/controllers/IntraCityController.php
  2. 1 1
      common/components/expressUtil.php

+ 1 - 1
app-hd/controllers/IntraCityController.php

@@ -434,7 +434,7 @@ class IntraCityController extends BaseController
     {
         $merchant = WxOpenClass::getWxInfo();
         $ptStyle = dict::getDict('ptStyle', 'hd');
-        $r = expressUtil::getShopList($merchant, ['wx_store_id' => '', 'out_store_id' => ''], $ptStyle);
+        $r = expressUtil::getShopList($merchant, ['wx_store_id' => '4000000000017952003'], $ptStyle);
         print_r($r);
     }
 

+ 1 - 1
common/components/expressUtil.php

@@ -29,7 +29,7 @@ class expressUtil
         $accessToken = self::getAccessToken($merchant, $ptStyle);
         $url = "https://api.weixin.qq.com/cgi-bin/express/intracity/querystore?access_token={$accessToken}";
         $curl = new curl\Curl();
-        $result = $curl->setOption(CURLOPT_POSTFIELDS, $data)->post($url);
+        $result = $curl->setOption(CURLOPT_POSTFIELDS, Json::encode($data))->post($url);
         return Json::decode($result);
     }