mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2026-09-04 15:04:32 +08:00
fix: 修复一处判断逻辑问题
This commit is contained in:
parent
f27a6c7b1d
commit
780e1fcedb
@ -183,7 +183,7 @@ class Wifi extends BasicWeChat
|
|||||||
public function setHomePage($shop_id, $template_id, $url = null)
|
public function setHomePage($shop_id, $template_id, $url = null)
|
||||||
{
|
{
|
||||||
$data = ['shop_id' => $shop_id, 'template_id' => $template_id];
|
$data = ['shop_id' => $shop_id, 'template_id' => $template_id];
|
||||||
is_null($url) && $data['struct'] = ['url' => $url];
|
!is_null($url) && $data['struct'] = ['url' => $url];
|
||||||
$url = 'https://api.weixin.qq.com/bizwifi/homepage/set?access_token=ACCESS_TOKEN';
|
$url = 'https://api.weixin.qq.com/bizwifi/homepage/set?access_token=ACCESS_TOKEN';
|
||||||
$this->registerApi($url, __FUNCTION__, func_get_args());
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
return $this->httpPostForJson($url, $data);
|
return $this->httpPostForJson($url, $data);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user