|
@@ -1660,6 +1660,18 @@ class wxUtil
|
|
|
echo '隐私设置OK';
|
|
echo '隐私设置OK';
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public static function privacySettingSelect($merchant, $isOpen = 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ $accessToken = self::getMiniProgramAccessToken($merchant, $isOpen);
|
|
|
|
|
+ $url = "https://api.weixin.qq.com/cgi-bin/component/getprivacysetting?access_token={$accessToken}";
|
|
|
|
|
+ $curl = new curl\Curl();
|
|
|
|
|
+ $data = [];
|
|
|
|
|
+ $result = $curl->setOption(CURLOPT_POSTFIELDS, Json::encode($data))->post($url);
|
|
|
|
|
+ $respond = Json::decode($result);
|
|
|
|
|
+ echo "<pre>";
|
|
|
|
|
+ print_r($respond);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//收款小程序码
|
|
//收款小程序码
|
|
|
public static function generateGatheringMiniCode($merchant, $shopId, $isOpen = 0)
|
|
public static function generateGatheringMiniCode($merchant, $shopId, $isOpen = 0)
|
|
|
{
|
|
{
|