Skip to content

menuCreat()可能存在的问题 #80

Closed

Description

@laohezi

在实现类中的menuCreate(String agentId, WxMenu menu)方法中agentid 应该是传进来的agentId,而不是

  • this.configStorage.getAgentId();吧

@OverRide
public void menuCreate(WxMenu menu) throws WxErrorException {
menuCreate(this.configStorage.getAgentId(), menu);
}

@OverRide
public void menuCreate(String agentId, WxMenu menu) throws WxErrorException {
String url = "https://qyapi.weixin.qq.com/cgi-bin/menu/create?agentid="

+ this.configStorage.getAgentId();

post(url, menu.toJson());

}

Activity

  1. binarywang commented on Nov 21, 2016

    @binarywang
    Owner

    看着像是有问题的,如果有时间你可以帮忙提交个PR上来。

  2. added a commit that references this issue on Nov 21, 2016
  3. binarywang commented on Nov 21, 2016

    @binarywang
    Owner

    已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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