fix: align business reports and record task migration progress
This commit is contained in:
@@ -53,11 +53,15 @@ func AlertLossAt(now time.Time) AlertLossWindow {
|
||||
return AlertLossWindow{LoginBefore: now.AddDate(0, 0, -15).Unix(), PayBegin: now.AddDate(0, 0, -30).Unix(), PayEnd: now.Unix(), MinPay: "500"}
|
||||
}
|
||||
|
||||
func (w AlertLossWindow) IsLost(lastLogin, created int64, pay string) (bool, error) {
|
||||
func (w AlertLossWindow) LoginExpired(lastLogin, created int64) bool {
|
||||
if lastLogin <= 0 {
|
||||
lastLogin = created
|
||||
}
|
||||
if lastLogin > 0 && lastLogin < w.LoginBefore {
|
||||
return lastLogin > 0 && lastLogin < w.LoginBefore
|
||||
}
|
||||
|
||||
func (w AlertLossWindow) IsLost(lastLogin, created int64, pay string) (bool, error) {
|
||||
if w.LoginExpired(lastLogin, created) {
|
||||
return true, nil
|
||||
}
|
||||
amount, err := portraitNumber(pay)
|
||||
|
||||
Reference in New Issue
Block a user