diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 4b6af93bd..64f75a7ad 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1275,7 +1275,7 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p } var mobileList []string for mobile := range userMap { - if mobile != "" { + if mobile != "" && !shouldSkipMobile4SendStoreStatusInfo(mobile) { mobileList = append(mobileList, mobile) } } @@ -1335,6 +1335,10 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p return err } +func shouldSkipMobile4SendStoreStatusInfo(mobile string) bool { + return userProvider.GetUser(mobile, auth2.AuthTypeMobile) == nil +} + func sendStoreStatusInfo2Mobile(mobile, title, excelURL string) { if user := userProvider.GetUser(mobile, auth2.AuthTypeMobile); user != nil { globals.SugarLogger.Debugf("sendStoreStatusInfo2Mobile %s:%s", mobile, excelURL)