|
|
@@ -24,17 +24,6 @@ class expressUtil
|
|
|
return miniUtil::getMiniProgramAccessToken($merchant, $ptStyle);
|
|
|
}
|
|
|
|
|
|
- public static function getShopList($merchant, $data, $ptStyle = 0)
|
|
|
- {
|
|
|
- $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_HTTPHEADER, ['Content-Type: application/json'])
|
|
|
- ->setOption(CURLOPT_POSTFIELDS, Json::encode($data))
|
|
|
- ->post($url);
|
|
|
- return Json::decode($result);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 绑定账号
|
|
|
* @param $merchant
|