Commit c38bd683 by guojuxing

主菜单不能超过3个

parent 68a0dfc4
......@@ -59,7 +59,7 @@ public class WechatMenuController {
List<AppletWechatMenuDTO> listOfHasValid = new ArrayList<>(list.size());
//主菜单不能超过3个
if (list.size() >= 3) {
if (list.size() > 3) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "主菜单不能超过3个");
}
......@@ -88,7 +88,7 @@ public class WechatMenuController {
List<AppletWechatMenuDTO> listSecondOfHasValid = new ArrayList<>(secondList.size());
//子菜单不超过5个
if (secondList.size() >= 5) {
if (secondList.size() > 5) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "子菜单不能超过5个");
}
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