update pac after import

This commit is contained in:
mercury
2023-06-05 03:17:31 +04:00
parent 01afe5b23c
commit d351288330
2 changed files with 8 additions and 5 deletions
+3 -2
View File
@@ -637,6 +637,7 @@ class Bot
$out[] = 'update pac';
$this->update($this->input['chat'], $this->input['message_id'], implode("\n", $out));
$this->setPacConf($json['pac']);
$this->pacUpdate('1');
}
// ad
if (!empty($json['ad'])) {
@@ -2130,9 +2131,9 @@ DNS-over-HTTPS with IP:
$this->menu('pac');
}
public function pacUpdate()
public function pacUpdate($import = '')
{
exec("php updatepac.php start {$this->input['chat']} {$this->input['message_id']} {$this->input['callback_id']} > /dev/null &");
exec("php updatepac.php start {$this->input['chat']} {$this->input['message_id']} {$this->input['callback_id']} $import > /dev/null &");
}
public function getSSConfig()