- 门店状态报警提示修改
This commit is contained in:
@@ -1716,8 +1716,8 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p
|
||||
curSnapshot := curSnapshotMap[v.GenMapKey()]
|
||||
// storeDetail := storeDetailMap[v.StoreID]
|
||||
curStoreStatus := "下线"
|
||||
if curSnapshot != nil && curSnapshot.Status == model.StoreStatusOpened {
|
||||
curStoreStatus = "上线"
|
||||
if curSnapshot != nil {
|
||||
curStoreStatus = model.StoreStatusName[curSnapshot.Status]
|
||||
}
|
||||
txtAlarm = append(txtAlarm, fmt.Sprintf("您的门店:%s,平台:%s,%s了", v.StoreName, model.VendorChineseNames[v.VendorID], curStoreStatus))
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ const (
|
||||
var (
|
||||
StoreStatusName = map[int]string{
|
||||
StoreStatusDisabled: "禁用",
|
||||
StoreStatusClosed: "长期休息",
|
||||
StoreStatusClosed: "休息",
|
||||
StoreStatusHaveRest: "临时休息",
|
||||
StoreStatusOpened: "营业中",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user