微信报文{"errcode":40165,"errmsg":"invalid weapp pagepath hint: []"}
问题描述
这两天阿婆主接了一个坑,额不对,接了一个任务:推送消息到公众号,用户点击消息详情时进入小程序处理。于是乎一顿操作猛如虎写了两三行代码:
WxMpTemplateMessage templateMessage = new WxMpTemplateMessage();
WxMpTemplateMessage.MiniProgram miniProgram = new WxMpTemplateMessage.MiniProgram();
miniProgram.setAppid("appId");
miniProgram.setPagePath("pages/a/b/c?foo=bar");
templateMessage.setMiniProgram(miniProgram);
终于华丽丽的报了错:
微信报文{
"errcode":40165,"errmsg