nutwk 3.3
微信公众号配置完了,模板列表也有,点击添加模板输入模板编号后提交保存不上
@At
@Ok("json")
@SLog(tag = "添加模板", msg = "")
@RequiresPermissions("wx.tpl.id.add")
public Object addDo(@Param("..") Wx_tpl_id wxTplId, HttpServletRequest req) {
try {
WxApi2 wxApi2 = wxConfigService.getWxApi2(wxTplId.getWxid());
WxResp wxResp=wxApi2.template_api_add_template(wxTplId.getId());
if (wxResp.errcode() == 0) {
wxTplId.setTemplate_id(wxResp.template_id());
wxTplIdService.insert(wxTplId);
return Result.success("system.success");
}
return Result.error("system.error");
} catch (Exception e) {
return Result.error("system.error");
}
}
wxResp = {WxResp@8377} size = 2
"errcode" -> {Integer@8384} 40037
"errmsg" -> "invalid template_id rid: 604affd2-191a9f1c-034f0289"
这个40037是什么意思