...
|
...
|
@@ -71,7 +71,7 @@ class SyncToEsCmd { |
|
|
break;
|
|
|
}
|
|
|
|
|
|
$id = redis()->lPop('sync_to_es'.S_V2);
|
|
|
$id = redis()->rPop('sync_to_es'.S_V2);
|
|
|
$code = 500;
|
|
|
if($id){
|
|
|
$doc_id = '';
|
...
|
...
|
@@ -81,7 +81,7 @@ class SyncToEsCmd { |
|
|
$data = $db->throw()->first('select * from `lists` where `id` = '.$id);
|
|
|
}
|
|
|
}catch (Throwable $e){
|
|
|
redis()->rPush('sync_to_es'.S_V2,$id);
|
|
|
redis()->lPush('sync_to_es'.S_V2,$id);
|
|
|
_echo('sync to es '.$e->getMessage());
|
|
|
break;
|
|
|
}
|
...
|
...
|
@@ -125,7 +125,7 @@ class SyncToEsCmd { |
|
|
// postid ai邮箱要用 这个是查询黑格
|
|
|
list($data['postid'],$data['source']) = $this->getPostid($data['email_id']);
|
|
|
}catch (Throwable $e){
|
|
|
redis()->rPush('sync_to_es'.S_V2,$id);
|
|
|
redis()->lPush('sync_to_es'.S_V2,$id);
|
|
|
_echo('sync to es '.$e->getMessage());
|
|
|
break;
|
|
|
}
|
...
|
...
|
|