larksuite / oapi-sdk-go

larksuite oapi sdk by golang
MIT License
430 stars 87 forks source link

机器人自定义菜单事件 P2BotMenuV6Data.event.timestamp 为字符串,但是encrypt解析后为数字 #97

Open xixipi-lining opened 1 year ago

xixipi-lining commented 1 year ago

具体报错

2023/04/27 13:54:07 [Error] [handle event,path:/event,err: json: cannot unmarshal number into Go struct field P2BotMenuV6Data.event.timestamp of type string]
blacklee123 commented 1 year ago

无语,这么久了还没修复,这个项目还有没有在维护了

wangusedemo commented 1 year ago

我也遇到了,看样临时不计划修复了啊

co1in9 commented 1 year ago

暂时只能自定义

handler := dispatcher.NewEventDispatcher(
    config.Conf.LARK_VERIFICATION_TOKEN,
    config.Conf.LARK_EVENT_ENCRYPT_KEY,
).OnCustomizedEvent("application.bot.menu_v6", func(ctx context.Context, event *larkevent.EventReq) error {
...
})