Commit da6e87a5 by haojie

1

parent 6b4ea99b
......@@ -55,6 +55,7 @@ public function task_callback(Request $request)
{
$data = request()->input();
$user = $request->user();
Log::info($user);
$res = app(TaskService::class)->task_callback($user->id, $data);
return $this->success('success', $res);
}
......
......@@ -194,8 +194,7 @@ function task_callback($user_id, $data = [])
$task_id = $credentials['task_id'];
# 判断必须字段
if (empty($task_id)) {
Log::error('轮询接口-缺少task_id');
return false;
throw new UserException('缺少id');
}
# 查询所有
$res = PromptTask::query()->where('user_id', $user_id)->where('task_id', $task_id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment