Skip to content

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

@LawlietNot

Description

@LawlietNot
/**
 * 获取菜单
 *
 * @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']都是获取为空

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions