Commit 3f722d3a by haojie

1

parent 00db6de8
......@@ -211,7 +211,7 @@ public function stableCallback(array $data = [])
if (empty($task_id) || empty($prompt_id)) {
throw new UserException('缺少字段');
}
if ((int)$status == 2) {
if ($status == 2) {
# 任务失败
$task = PromptTask::find($prompt_id);
$sendData = [
......@@ -223,7 +223,7 @@ public function stableCallback(array $data = [])
];
# 提交redis
Redis::rpush('stable_task', json_encode($sendData));
} elseif ((int)$status == 1) {
} elseif ($status == 1) {
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