controller()) != 'index') SystemLog::adminVisit($adminInfo['id'], $adminInfo['account'], $type); } public static function systemAdminLoginAfter($adminInfo) { SystemAdmin::edit(['last_ip' => Request::instance()->ip(), 'last_time' => time()], $adminInfo['id']); } }