兜底
This commit is contained in:
@@ -89,8 +89,8 @@ def create_task(
|
||||
|
||||
if req.task_type == "start_apply":
|
||||
params = req.params or {}
|
||||
if not params.get("keywords") or not params.get("city_code"):
|
||||
raise HTTPException(status_code=422, detail="开始投递必须提供 keywords 与 city_code")
|
||||
if not params.get("keywords") or not params.get("city"):
|
||||
raise HTTPException(status_code=422, detail="开始投递必须提供 keywords 与 city")
|
||||
|
||||
task = RpaTask(
|
||||
user_id=current_user.id,
|
||||
|
||||
@@ -34,7 +34,7 @@ def start_session(
|
||||
user_id=current_user.id,
|
||||
status="running",
|
||||
keywords=req.keywords,
|
||||
city_code=req.city_code,
|
||||
city=req.city,
|
||||
salary_min=req.salary_min,
|
||||
salary_max=req.salary_max,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user