正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -47,7 +47,7 @@ public function handle() | @@ -47,7 +47,7 @@ public function handle() | ||
| 47 | */ | 47 | */ |
| 48 | public function websiteHandle() | 48 | public function websiteHandle() |
| 49 | { | 49 | { |
| 50 | - $info = Redis::get('handle_html'); | 50 | + $info = Redis::rpop('handle_html'); |
| 51 | if (!empty($info)) { | 51 | if (!empty($info)) { |
| 52 | $this->output('网站更新开始'); | 52 | $this->output('网站更新开始'); |
| 53 | $noticeController = new NoticeController(); | 53 | $noticeController = new NoticeController(); |
| @@ -246,7 +246,7 @@ public function websiteHtml(Request $request) | @@ -246,7 +246,7 @@ public function websiteHtml(Request $request) | ||
| 246 | "zip_count" => $zip_count | 246 | "zip_count" => $zip_count |
| 247 | ]; | 247 | ]; |
| 248 | $info = json_encode($info); | 248 | $info = json_encode($info); |
| 249 | - Redis::set('handle_html', $info); | 249 | + Redis::lpush('handle_html', $info); |
| 250 | return $this->success(); | 250 | return $this->success(); |
| 251 | } | 251 | } |
| 252 | 252 |
-
请 注册 或 登录 后发表评论