Commit cf07edea authored by shiyu's avatar shiyu

getMenu3

parent 94b82dcc
......@@ -247,7 +247,8 @@ public class OfficialAccountApi {
}
public Result getMenu() throws IOException {
public Result getMenu() {
try {
String token = getAccessToken();
String url = "https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info" + "?access_token=" + token;
OkHttpUtil okHttpUtil = OkHttpUtil.builder().url(url);
......@@ -272,6 +273,10 @@ public class OfficialAccountApi {
logger.info("创建接口返回原文 :{}", responseStr3);
map.put("responseStr3", responseStr3);
return Result.success(map);
} catch (Exception e) {
e.printStackTrace();
}
return Result.failed();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment