This commit is contained in:
扫地僧 2026-06-17 00:44:33 +08:00
parent ffe8a2a2fb
commit 9e482a12be

View File

@ -97,19 +97,9 @@ func (c *ApiCursorDetectController) PeekToken() {
return return
} }
dataType := strings.TrimSpace(c.GetString("data_type"))
if dataType == "" {
dataType = "tk"
}
if !isValidPoolType(dataType) {
c.cursorDetectJSONErr(400, 400, "data_type 不合法,支持: account/tk/account_tk")
return
}
var row models.PlatformAccountPoolCursor var row models.PlatformAccountPoolCursor
qs := models.Orm.QueryTable(new(models.PlatformAccountPoolCursor)). qs := models.Orm.QueryTable(new(models.PlatformAccountPoolCursor)).
Filter("id", startID). Filter("id", startID).
Filter("data_type", dataType).
Filter("delete_time__isnull", true). Filter("delete_time__isnull", true).
Exclude("token", "") Exclude("token", "")