功能更新
This commit is contained in:
parent
6f6f1de642
commit
2a68c5e769
BIN
release/backend
BIN
release/backend
Binary file not shown.
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user