/** * 创建菜单 * * @param AgentID 应用ID * @param jsonStr * @return */ public static Result<String> createMenu(String token, int AgentID, String jsonStr) { Result<String> result = new Result<String>(); JSONObject jo = MenuAPI.createMenu(token, AgentID, jsonStr); if (jo != null) { result.setErrmsg(ErrorCodeText.errorMsg(jo.getString("errcode"))); result.setErrcode(jo.getString("errcode")); result.setObject(""); } return result; }