@@ -170,6 +170,10 @@ func sendtemp(openid, order_coded, product_type, pay_time string) {
} else {
util.DataReport_WTMCS.Reload()
wtmc := util.DataReport_WTMCS.Get(config.MessageConfig.WxTpl_DataReport.First.Value)
+ if wtmc == nil {
+ fmt.Println("数据报告模板参数异常")
+ return
+ }
ok, status := frpc.WxPush(config.Config.Weixinrpc, "WeiXinRpc.SendDataReportMsg", &frpc.NotifyMsg{
Openid: openid,
Title: wtmc.FirstData,