Commit d9b6a031 by haojie

1

parent 3de974ab
......@@ -178,7 +178,6 @@ public function stableSubmit(int $userId = 0, array $data = [])
];
# 提交redis
$status = Redis::rpush('stable_task', json_encode($sendData));
Log::info($status);
return [
'task_id' => $task->id,
'prompt_num' => $task->prompt_num
......@@ -191,7 +190,7 @@ public function stableSubmit(int $userId = 0, array $data = [])
public function getStableTask(array $data = [])
{
# 获取redis任务
$taskList = Redis::lpop('stable_task');
$taskList = Redis::lpop('laravel_database_stable_task');
return $taskList;
}
......
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