mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-25 00:15:06 +08:00
mp:优化【菜单】其它类型的处理
This commit is contained in:
@ -72,6 +72,12 @@ public class MpUtils {
|
||||
group = ScanCodeWaitMsgButtonGroup.class;
|
||||
validateMessage(validator, messageType, button); // 需要额外校验回复的消息格式
|
||||
break;
|
||||
case WxConsts.MenuButtonType.SCANCODE_PUSH: // 不用校验,直接 return 即可
|
||||
case WxConsts.MenuButtonType.PIC_SYSPHOTO:
|
||||
case WxConsts.MenuButtonType.PIC_PHOTO_OR_ALBUM:
|
||||
case WxConsts.MenuButtonType.PIC_WEIXIN:
|
||||
case WxConsts.MenuButtonType.LOCATION_SELECT:
|
||||
return;
|
||||
default:
|
||||
log.error("[validateButton][未知的按钮({})]", button);
|
||||
throw new IllegalArgumentException("不支持的按钮类型:" + type);
|
||||
|
Reference in New Issue
Block a user