- shouldSkipMobile4SendStoreStatusInfo
This commit is contained in:
@@ -1275,7 +1275,7 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p
|
|||||||
}
|
}
|
||||||
var mobileList []string
|
var mobileList []string
|
||||||
for mobile := range userMap {
|
for mobile := range userMap {
|
||||||
if mobile != "" {
|
if mobile != "" && !shouldSkipMobile4SendStoreStatusInfo(mobile) {
|
||||||
mobileList = append(mobileList, mobile)
|
mobileList = append(mobileList, mobile)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1335,6 +1335,10 @@ func SendAlarmVendorSnapshot(ctx *jxcontext.Context, parentTask tasksch.ITask, p
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func shouldSkipMobile4SendStoreStatusInfo(mobile string) bool {
|
||||||
|
return userProvider.GetUser(mobile, auth2.AuthTypeMobile) == nil
|
||||||
|
}
|
||||||
|
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user