作者 邓超

预热脚本移入

@@ -44,7 +44,7 @@ $pm->addBatch(10,function (\Swoole\Process\Pool $pool, int $worker_id){ @@ -44,7 +44,7 @@ $pm->addBatch(10,function (\Swoole\Process\Pool $pool, int $worker_id){
44 $data = db()->first("select * from lists where `id` = {$id} limit 1;"); 44 $data = db()->first("select * from lists where `id` = {$id} limit 1;");
45 if($data){ 45 if($data){
46 try { 46 try {
47 - db()->throw()->insert('lists_hot', $data); 47 + db()->throw()->insert('lists_back', $data);
48 } catch (\Exception $e) { 48 } catch (\Exception $e) {
49 @file_put_contents('lists_to_lists_hot.data.error.log', json_encode($data)."\n", FILE_APPEND); 49 @file_put_contents('lists_to_lists_hot.data.error.log', json_encode($data)."\n", FILE_APPEND);
50 } 50 }