- 门店报警excel文件不用中文

This commit is contained in:
gazebo
2019-06-27 18:37:18 +08:00
parent 537d730a2c
commit f3721fda60

View File

@@ -1328,7 +1328,7 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p
}
excelBin := excel.Obj2Excel([]*excel.Obj2ExcelSheetConfig{excelConf})
keyPart := []string{
fixTitle,
"store_status",
mobile,
time.Now().Format("20060102T150405") + ".xlsx",
}
@@ -1353,7 +1353,7 @@ func shouldSkipMobile4SendStoreStatusInfo(mobile string) bool {
func sendStoreStatusInfo2Mobile(mobile, title, excelURL string) {
if user := userProvider.GetUser(mobile, auth2.AuthTypeMobile); user != nil {
globals.SugarLogger.Debugf("sendStoreStatusInfo2Mobile %s:%s", mobile, excelURL)
msg.SendUserMessage(user.GetID(), title, fmt.Sprintf("详情见: %s", excelURL))
msg.SendUserMessage(user.GetID(), title, fmt.Sprintf("详情见: \n%s", excelURL))
}
}