registerApi($url, __FUNCTION__, func_get_args()); return $this->httpPostForJson($url, ['status' => $status], true); } /** * 2. 查询小程序当前隐私设置(是否可被搜索) * @return array * @throws \WeChat\Exceptions\InvalidResponseException * @throws \WeChat\Exceptions\LocalCacheException */ public function getWxaSearchStatus() { $url = 'https://api.weixin.qq.com/wxa/getwxasearchstatus?access_token=ACCESS_TOKEN'; $this->registerApi($url, __FUNCTION__, func_get_args()); return $this->httpGetForJson($url); } }