You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NullPointerException: null at cn.binarywang.wx.miniapp.api.impl.WxMaMsgServiceImpl.sendTemplateMsg(WxMaMsgServiceImpl.java:34) ~[weixin-java-miniapp-2.7.0.jar:na]
at com.github.binarywang.demo.wechat.controller.WxPortalController.sendMsg(WxPortalController.java:108) ~[classes/:1.0.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
Activity
kareanyi commentedon Jun 29, 2017
看了下文档,这里取错了
if (jsonObject.get("errcode").getAsInt() == 0) {
return jsonObject.get("msgid").getAsString();
}
文档上写的是
{
"errcode": 0,
"errmsg": "ok",
}
binarywang commentedon Jun 29, 2017
我看了下,确实是有问题,这块儿忘了仔细核对,从公众号代码那里参考过来的。
#260 修复小程序发送模版消息接口的问题,并重新整理javadoc
#260 修复小程序发送模版消息接口的问题,并重新整理javadoc
kareanyi commentedon Jun 30, 2017
嗯,那块应该就不用return了
binarywang commentedon Jul 2, 2017
2.7.2.BETA版本已修复
#260 修复小程序发送模版消息接口的问题,并重新整理javadoc
#260 修复小程序发送模版消息接口的问题,并重新整理javadoc