Verified Commit 52c55f84 authored by Cui's avatar Cui

fix bug

parent f9823e8f
...@@ -36,7 +36,7 @@ type CustomerMessageInterface interface { ...@@ -36,7 +36,7 @@ type CustomerMessageInterface interface {
func CustomerMessageSender(accessToken string, cmi CustomerMessageInterface) (int, string) { func CustomerMessageSender(accessToken string, cmi CustomerMessageInterface) (int, string) {
log := Logger.WithFields(logrus.Fields{ log := Logger.WithFields(logrus.Fields{
"position": "messageSender.go", "position": "gzh.go",
"func": "CustomerMessageSender", "func": "CustomerMessageSender",
"accessToken": accessToken, "accessToken": accessToken,
}) })
...@@ -83,7 +83,7 @@ func CustomerMessageSender(accessToken string, cmi CustomerMessageInterface) (in ...@@ -83,7 +83,7 @@ func CustomerMessageSender(accessToken string, cmi CustomerMessageInterface) (in
func TemplateMessageSender(accessToken string, tm TemplateMessage) (int, string) { func TemplateMessageSender(accessToken string, tm TemplateMessage) (int, string) {
log := Logger.WithFields(logrus.Fields{ log := Logger.WithFields(logrus.Fields{
"position": "messageSender.go", "position": "gzh.go",
"func": "TemplateMessageSender", "func": "TemplateMessageSender",
"accessToken": accessToken, "accessToken": accessToken,
}) })
...@@ -116,7 +116,7 @@ func TemplateMessageSender(accessToken string, tm TemplateMessage) (int, string) ...@@ -116,7 +116,7 @@ func TemplateMessageSender(accessToken string, tm TemplateMessage) (int, string)
func SubscribeMessageSender(accessToken string, sm SubscribeMessage) (int, string) { func SubscribeMessageSender(accessToken string, sm SubscribeMessage) (int, string) {
log := Logger.WithFields(logrus.Fields{ log := Logger.WithFields(logrus.Fields{
"position": "messageSender.go", "position": "gzh.go",
"func": "SubscribeMessageSender", "func": "SubscribeMessageSender",
"accessToken": accessToken, "accessToken": accessToken,
}) })
......
...@@ -15,7 +15,7 @@ const ( ...@@ -15,7 +15,7 @@ const (
func SmsMessageSender(sm SmsMessage, appId int, appKey string) (int, string) { func SmsMessageSender(sm SmsMessage, appId int, appKey string) (int, string) {
log := Logger.WithFields(logrus.Fields{ log := Logger.WithFields(logrus.Fields{
"position": "messageSender.go", "position": "sms.go",
"func": "SmsMessageSender", "func": "SmsMessageSender",
"accessToken": appId, "accessToken": appId,
}) })
......
...@@ -107,7 +107,7 @@ func (tm *TemplateMessage) ToFields() (fields logrus.Fields) { ...@@ -107,7 +107,7 @@ func (tm *TemplateMessage) ToFields() (fields logrus.Fields) {
fields["miniprogram.Appid"] = tm.Miniprogram.Appid fields["miniprogram.Appid"] = tm.Miniprogram.Appid
fields["miniprogram.Pagepath"] = tm.Miniprogram.Pagepath fields["miniprogram.Pagepath"] = tm.Miniprogram.Pagepath
data, _ := json.Marshal(tm.Data) data, _ := json.Marshal(tm.Data)
fields["data"] = data fields["data"] = string(data)
return 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