From 2728a32064c780adf493193f4805c0ff8a84d74e Mon Sep 17 00:00:00 2001 From: Echo <1711788888@qq.com> Date: Wed, 3 Jul 2024 17:07:51 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BF=AE=E6=94=B9=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=A8=A1=E6=9D=BFid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task/wxMsg.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/task/wxMsg.go b/task/wxMsg.go index 9b1258b..0a89b32 100644 --- a/task/wxMsg.go +++ b/task/wxMsg.go @@ -74,17 +74,19 @@ func MiniappSendMsg(userId string, utId string) { //判断context是否超过20个字符 if len(ut.Content)/3 >= 19 { text := strings.Split(ut.Content, "药品") + text = text[1:] for i := 1; i < len(text); i++ { msgData := msg.SendRequest{ ToUser: user.WechatOpenId, - TemplateID: "PgxoZOOSDgBcmIGd_EVLDnYUmL3eu6NQTAZCsHQeuWY", + TemplateID: "BKyIwkt7HHEQoQ9ByrHqnHaGO5jq8d-MCp9YYGK23TE", Page: "/pages/index/done", MiniprogramState: msg.MiniprogramStateTrial, Data: msg.SendData{ - "thing1": msg.SendValue{Value: text[i]}, - "time2": msg.SendValue{Value: ut.RemindTime}, - "short_thing17": msg.SendValue{Value: ut.Frequency}, - "time15": msg.SendValue{Value: time.Now().Format("2006-01-02 15:04:05")}, + "thing2": msg.SendValue{Value: text[i]}, + "time6": msg.SendValue{Value: ut.RemindTime}, + "thing8": msg.SendValue{Value: ut.Frequency}, + "thing3": msg.SendValue{Value: "用药详情请进入小程序待完成事项中查看"}, + //"time15": msg.SendValue{Value: time.Now().Format("2006-01-02 15:04:05")}, }, } @@ -93,7 +95,7 @@ func MiniappSendMsg(userId string, utId string) { } else { msgData := msg.SendRequest{ ToUser: user.WechatOpenId, - TemplateID: "PgxoZOOSDgBcmIGd_EVLDnYUmL3eu6NQTAZCsHQeuWY", + TemplateID: "BKyIwkt7HHEQoQ9ByrHqnHaGO5jq8d-MCp9YYGK23TE", Page: "/pages/index/done", MiniprogramState: msg.MiniprogramStateTrial, Data: msg.SendData{