diff --git a/go/controllers/api_cursor_detect.go b/go/controllers/api_cursor_detect.go index 8547d91..c0608d6 100644 --- a/go/controllers/api_cursor_detect.go +++ b/go/controllers/api_cursor_detect.go @@ -97,19 +97,9 @@ func (c *ApiCursorDetectController) PeekToken() { 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 qs := models.Orm.QueryTable(new(models.PlatformAccountPoolCursor)). Filter("id", startID). - Filter("data_type", dataType). Filter("delete_time__isnull", true). Exclude("token", "")