feat: 优化 Manticore 相关描述
This commit is contained in:
@@ -14,20 +14,20 @@ class SyncMsgToManticore extends Command
|
||||
use ManticoreSyncLock;
|
||||
|
||||
/**
|
||||
* 更新数据(MVA 方案:allowed_users 在同步时自动写入)
|
||||
* 更新数据
|
||||
* --f: 全量更新 (默认)
|
||||
* --i: 增量更新(从上次更新的最后一个ID接上,持续处理直到完成)
|
||||
* --i: 增量更新
|
||||
*
|
||||
* 清理数据
|
||||
* --c: 清除索引
|
||||
*
|
||||
* 其他选项
|
||||
* --dialog: 指定对话ID(仅同步该对话的消息)
|
||||
* --sleep: 每批处理完成后休眠秒数(增量模式)
|
||||
* --dialog: 指定对话ID
|
||||
* --sleep: 每批处理完成后休眠秒数
|
||||
*/
|
||||
|
||||
protected $signature = 'manticore:sync-msgs {--f} {--i} {--c} {--batch=100} {--dialog=} {--sleep=3}';
|
||||
protected $description = '同步消息数据到 Manticore Search(MVA 权限方案)';
|
||||
protected $description = '同步消息数据到 Manticore Search';
|
||||
|
||||
public function handle(): int
|
||||
{
|
||||
@@ -54,10 +54,10 @@ class SyncMsgToManticore extends Command
|
||||
$dialogId = $this->option('dialog') ? intval($this->option('dialog')) : 0;
|
||||
|
||||
if ($dialogId > 0) {
|
||||
$this->info("开始同步对话 {$dialogId} 的消息数据(MVA 方案:allowed_users 自动内联)...");
|
||||
$this->info("开始同步对话 {$dialogId} 的消息数据...");
|
||||
$this->syncDialogMsgs($dialogId);
|
||||
} else {
|
||||
$this->info('开始同步消息数据(MVA 方案:allowed_users 自动内联)...');
|
||||
$this->info('开始同步消息数据...');
|
||||
$this->syncMsgs();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user