Commit ca5b6117 by haojie

1

parent a0ef411d
......@@ -201,6 +201,7 @@ public function stableCallback(array $data = [])
{
# 必须字段
$credentials = Arr::only($data, ['user_id', 'task_id', 'result_img', 'message', 'prompt_id', 'status']);
Log::info(json_encode($credentials));
$user_id = $credentials['user_id'] ?? '';
$task_id = $credentials['task_id'] ?? '';
$prompt_id = $credentials['prompt_id'] ?? '';
......@@ -223,6 +224,7 @@ public function stableCallback(array $data = [])
# 提交redis
Redis::rpush('stable_task', json_encode($sendData));
} elseif ((int)$status == 1) {
Log::info('成功');
# 任务成功
$task = PromptTask::find($prompt_id);
$task->result_img = $result_img;
......
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