Commit d9b6a031 by haojie

1

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