功能更新

This commit is contained in:
hahwu 2025-09-28 16:59:13 +08:00
parent 6f6f1de642
commit 2a68c5e769
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -251,7 +251,7 @@ func GetOperation(App *Type.App) (*Type.Operation, error) {
}
InactiveTime, _ := GetZeroTimestamp(App.Tz, -8)
var InactiveUsers int
err = Db.Get(&InactiveUsers, "SELECT count(distinct Uid) as count from (SELECT Uid, MAX(Timestamp) as LastLogin FROM log_login WHERE Event = 'Login_log' GROUP BY Uid) as lt where lastlogin < ?", InactiveTime)
err = Db.Get(&InactiveUsers, "SELECT count(distinct Uid) as count from (SELECT Uid, MAX(Timestamp) as LastLogin FROM log_login WHERE Event = 'Login_log' GROUP BY Uid) as lt where lastlogin < ? and lastlogin > ?", InactiveTime, App.OpenTime)
if err != nil {
return nil, fmt.Errorf("failed to select data: %v", err)
}