From 7316d49af86f043b1f1c75f19e7672451e63bf64 Mon Sep 17 00:00:00 2001 From: mercury Date: Sun, 28 Apr 2024 23:08:48 +0400 Subject: [PATCH] timer singbox user fix --- app/bot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/bot.php b/app/bot.php index 09e84e1..114f7b2 100644 --- a/app/bot.php +++ b/app/bot.php @@ -1106,8 +1106,8 @@ class Bot public function shutdownClientXr() { try { - $c = $this->getXray(); - foreach ($c['inbounds'][0]['users'] as $k => $v) { + $p = $this->getPacConf(); + foreach ($p['xrusers'] as $k => $v) { if (!empty($v['time']) && ($v['time'] < time())) { $this->switchXr($k, 1); }