mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 04:39:00 +08:00
fix(mp): 微信公众号支持配置单个主菜单
This commit is contained in:
1 parent
6b5dbb86cb
commit
ecc0c8ac93
1 file changed
+1
-2
+1
-2
@@ -22,7 +22,6 @@ import org.springframework.stereotype.Component;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @author Binary Wang(https://github.com/binarywang)
|
||||
@@ -59,7 +58,7 @@ public class MenuHandler extends AbstractHandler {
|
||||
List<JSONObject> buttonList = new ArrayList<>();
|
||||
for (JSONObject button : buttons) {
|
||||
JSONArray subButton = button.getJSONArray("sub_button");
|
||||
if (Objects.isNull(subButton)) {
|
||||
if (subButton.isEmpty()) {
|
||||
buttonList.add(button);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user