|
@@ -59,7 +59,7 @@ func WxSendTemplateMsg(sendUrl string, sendMap map[string]interface{}, items []*
|
|
|
fmt.Println("SendTemplateMsgOne Marshal Err:", err.Error())
|
|
|
return err
|
|
|
}
|
|
|
- utils.FileLog.Info("One SendData:%s", string(data))
|
|
|
+ utils.FileLog.Info(fmt.Sprintf("One SendData:%s", string(data)))
|
|
|
err = SendTemplateMsg(sendUrl, data)
|
|
|
if err != nil {
|
|
|
fmt.Println("send err:", err.Error())
|
|
@@ -78,7 +78,7 @@ func SendTemplateMsg(sendUrl string, data []byte) (err error) {
|
|
|
defer resp.Body.Close()
|
|
|
|
|
|
body, _ := ioutil.ReadAll(resp.Body)
|
|
|
- utils.FileLog.Info("SendResult:%s", string(body))
|
|
|
+ utils.FileLog.Info(fmt.Sprintf("SendResult:%s", string(body)))
|
|
|
var templateResponse models.SendTemplateResponse
|
|
|
err = json.Unmarshal(body, &templateResponse)
|
|
|
if err != nil {
|
|
@@ -127,7 +127,7 @@ func SendWxMsgWithActivityAppointmentRemind(first, keyword1, keyword2, keyword3,
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
go utils.SendEmail("发送模版消息失败"+"【"+utils.APPNAME+"】"+time.Now().Format("2006-01-02 15:04:05"), msg+";Err:"+err.Error(), utils.EmailSendToUsers)
|
|
|
- utils.FileLog.Info("发送模版消息失败,Err:%s", err.Error())
|
|
|
+ utils.FileLog.Info(fmt.Sprintf("发送模版消息失败,Err:%s", err.Error()))
|
|
|
}
|
|
|
}()
|
|
|
utils.FileLog.Info("%s", "services SendMsg")
|