Commit d2fbd9a8 by 陶光胜

Merge branch 'developer' into 'master'

主菜单不能超过3个

See merge request !49
parents db2c5548 c38bd683
...@@ -59,7 +59,7 @@ public class WechatMenuController { ...@@ -59,7 +59,7 @@ public class WechatMenuController {
List<AppletWechatMenuDTO> listOfHasValid = new ArrayList<>(list.size()); List<AppletWechatMenuDTO> listOfHasValid = new ArrayList<>(list.size());
//主菜单不能超过3个 //主菜单不能超过3个
if (list.size() >= 3) { if (list.size() > 3) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "主菜单不能超过3个"); return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "主菜单不能超过3个");
} }
...@@ -88,7 +88,7 @@ public class WechatMenuController { ...@@ -88,7 +88,7 @@ public class WechatMenuController {
List<AppletWechatMenuDTO> listSecondOfHasValid = new ArrayList<>(secondList.size()); List<AppletWechatMenuDTO> listSecondOfHasValid = new ArrayList<>(secondList.size());
//子菜单不超过5个 //子菜单不超过5个
if (secondList.size() >= 5) { if (secondList.size() > 5) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "子菜单不能超过5个"); return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "子菜单不能超过5个");
} }
for (AppletWechatMenuDTO second : secondList) { for (AppletWechatMenuDTO second : secondList) {
......
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