fix isLogin

This commit is contained in:
Ibnu Maksum 2023-11-15 11:45:29 +07:00
parent 69ea0d0b7f
commit 452642831c
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -12,10 +12,10 @@ _auth();
$action = $routes['1'];
$user = User::_info();
$bill = User::_billing();
switch ($action) {
case 'isLogin':
$bill = ORM::for_table('tbl_user_recharges')->where('id', $routes['2'])->where('username', $user['username'])->findOne();
if ($bill['type'] == 'Hotspot' && $bill['status'] == 'on') {
$m = Mikrotik::info($bill['routers']);
$client = Mikrotik::getClient($m['ip_address'], $m['username'], $m['password']);