- 门店报警excel文件不用中文
This commit is contained in:
@@ -1328,7 +1328,7 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p
|
|||||||
}
|
}
|
||||||
excelBin := excel.Obj2Excel([]*excel.Obj2ExcelSheetConfig{excelConf})
|
excelBin := excel.Obj2Excel([]*excel.Obj2ExcelSheetConfig{excelConf})
|
||||||
keyPart := []string{
|
keyPart := []string{
|
||||||
fixTitle,
|
"store_status",
|
||||||
mobile,
|
mobile,
|
||||||
time.Now().Format("20060102T150405") + ".xlsx",
|
time.Now().Format("20060102T150405") + ".xlsx",
|
||||||
}
|
}
|
||||||
@@ -1353,7 +1353,7 @@ func shouldSkipMobile4SendStoreStatusInfo(mobile string) bool {
|
|||||||
func sendStoreStatusInfo2Mobile(mobile, title, excelURL string) {
|
func sendStoreStatusInfo2Mobile(mobile, title, excelURL string) {
|
||||||
if user := userProvider.GetUser(mobile, auth2.AuthTypeMobile); user != nil {
|
if user := userProvider.GetUser(mobile, auth2.AuthTypeMobile); user != nil {
|
||||||
globals.SugarLogger.Debugf("sendStoreStatusInfo2Mobile %s:%s", mobile, excelURL)
|
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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user