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