Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信菜单接口获取失败 #19

Open
LawlietNot opened this issue Jan 5, 2018 · 0 comments
Open

微信菜单接口获取失败 #19

LawlietNot opened this issue Jan 5, 2018 · 0 comments

Comments

@LawlietNot
Copy link

/**
 * 获取菜单
 *
 * @return array
 */
public function get($agentId)
{
    $menus = $this->http->get(self::API_GET.'?agentid='.$agentId);

    return empty($menus['menu']['button']) ? array() : $menus['menu']['button'];
}
{
"errcode": 0,
"errmsg": "ok",
"button": []
}

貌似微信返回格式变了,现在$menus['menu']['button']都是获取为空

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant