Commit d996d09d by guojuxing

公众号菜单保存调整:全部一起保存

parent 52a80973
......@@ -72,6 +72,8 @@ public class WechatMenuController {
first.setEnterpriseId(enterpriseId);
first.setFirstLevel(true);
menuNameSet.add(first.getMenuName());
RestResponse response = validParams(first);
if (!"0000".equals(response.getCode())) {
return RestResponse.failure(response.getCode(), response.getMessage());
......@@ -93,6 +95,8 @@ public class WechatMenuController {
second.setFirstLevel(false);
second.setEnterpriseId(enterpriseId);
menuNameSet.add(second.getMenuName());
RestResponse responseOfSecond = validParams(second);
if (!"0000".equals(responseOfSecond.getCode())) {
return RestResponse.failure(responseOfSecond.getCode(), responseOfSecond.getMessage());
......
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