Commit f9baf31e by haojie

1

parent 307a8394
......@@ -204,11 +204,11 @@ public function stableCallback(array $data = [])
$prompt_id = $data['prompt_id'] ?? '';
$result_img = $data['result_img'] ?? '';
$message = $data['message'] ?? '';
$status = $data['status'] ?? '';
$status = $data['status'] ?? false;
if (empty($task_id) || empty($prompt_id)) {
throw new UserException('缺少字段');
}
if ($status == 2) {
if (!$status) {
# 任务失败
$task = PromptTask::find($prompt_id);
$sendData = [
......@@ -220,7 +220,7 @@ public function stableCallback(array $data = [])
];
# 提交redis
Redis::rpush('stable_task', json_encode($sendData));
} elseif ($status == 1) {
} elseif ($status) {
Log::info('成功');
# 任务成功
$task = PromptTask::find($prompt_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