更新续杯相关
This commit is contained in:
@@ -23,6 +23,7 @@ var validPlatformTypes = map[string]bool{
|
||||
"jingdong": true,
|
||||
"douyin": true,
|
||||
"local": true,
|
||||
"xubei": true,
|
||||
}
|
||||
|
||||
// validModules 支持的号池模块
|
||||
@@ -48,7 +49,7 @@ func (c *ApiGetCardController) cardOK(text string) {
|
||||
// GET /api/getcard?type=xianyu&module=cursor&data_type=tk
|
||||
//
|
||||
// 参数:
|
||||
// - type (必填) 来源平台:xianyu / taobao / pinduoduo / jingdong / local
|
||||
// - type (必填) 来源平台:xianyu / taobao / pinduoduo / jingdong / local / xubei
|
||||
// - module (必填) 号池模块:cursor / windsurf / krio
|
||||
// - data_type (可选) 账号类型:account / tk / account_tk,不传则取任意未提取的
|
||||
func (c *ApiGetCardController) GetCard() {
|
||||
@@ -62,7 +63,7 @@ func (c *ApiGetCardController) GetCard() {
|
||||
return
|
||||
}
|
||||
if !validPlatformTypes[platform] {
|
||||
c.cardErr(400, 400, fmt.Sprintf("不支持的平台类型: %s,支持: xianyu/taobao/pinduoduo/jingdong/local", platform))
|
||||
c.cardErr(400, 400, fmt.Sprintf("不支持的平台类型: %s,支持: xianyu/taobao/pinduoduo/jingdong/local/xubei", platform))
|
||||
return
|
||||
}
|
||||
if module == "" {
|
||||
|
||||
Reference in New Issue
Block a user