modify notify

This commit is contained in:
2022-01-11 10:16:57 +08:00
parent 678005f179
commit d329df0daf
2 changed files with 29 additions and 2 deletions

View File

@@ -97,7 +97,6 @@ func main() {
}
}
user.ForEachUser(func(u *user.User) bool {
if u.IsStop() {
return true
@@ -172,6 +171,10 @@ func main() {
logx.Errorf("get stock err: %v", err)
}
if !st.Notify() {
continue
}
msg_ := st.Msg()
if msg_ != "" {
err = msg.Send(msg_)
@@ -199,6 +202,8 @@ func main() {
return true
})
st.FinishSendAll()
}
}
})