更新
This commit is contained in:
parent
ffe8a2a2fb
commit
9e482a12be
@ -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", "")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user