Verified Commit 52c55f84 authored by Cui's avatar Cui

fix bug

parent f9823e8f
......@@ -36,7 +36,7 @@ type CustomerMessageInterface interface {
func CustomerMessageSender(accessToken string, cmi CustomerMessageInterface) (int, string) {
log := Logger.WithFields(logrus.Fields{
"position": "messageSender.go",
"position": "gzh.go",
"func": "CustomerMessageSender",
"accessToken": accessToken,
})
......@@ -83,7 +83,7 @@ func CustomerMessageSender(accessToken string, cmi CustomerMessageInterface) (in
func TemplateMessageSender(accessToken string, tm TemplateMessage) (int, string) {
log := Logger.WithFields(logrus.Fields{
"position": "messageSender.go",
"position": "gzh.go",
"func": "TemplateMessageSender",
"accessToken": accessToken,
})
......@@ -116,7 +116,7 @@ func TemplateMessageSender(accessToken string, tm TemplateMessage) (int, string)
func SubscribeMessageSender(accessToken string, sm SubscribeMessage) (int, string) {
log := Logger.WithFields(logrus.Fields{
"position": "messageSender.go",
"position": "gzh.go",
"func": "SubscribeMessageSender",
"accessToken": accessToken,
})
......
......@@ -15,7 +15,7 @@ const (
func SmsMessageSender(sm SmsMessage, appId int, appKey string) (int, string) {
log := Logger.WithFields(logrus.Fields{
"position": "messageSender.go",
"position": "sms.go",
"func": "SmsMessageSender",
"accessToken": appId,
})
......
......@@ -107,7 +107,7 @@ func (tm *TemplateMessage) ToFields() (fields logrus.Fields) {
fields["miniprogram.Appid"] = tm.Miniprogram.Appid
fields["miniprogram.Pagepath"] = tm.Miniprogram.Pagepath
data, _ := json.Marshal(tm.Data)
fields["data"] = data
fields["data"] = string(data)
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment