fix trojan server online

This commit is contained in:
Tokumeikoi 2020-06-13 19:02:58 +08:00
parent bf915214dd
commit 3cdfc69b5d
3 changed files with 6 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class ServerService
foreach ($trojans as $k => $v) {
$groupId = json_decode($trojans[$k]['group_id']);
if (in_array($user->group_id, $groupId)) {
$vmesss[$k]['last_check_at'] = Cache::get(CacheKey::get('SERVER_TROJAN_LAST_CHECK_AT', $trojans[$k]['id']));
$trojans[$k]['last_check_at'] = Cache::get(CacheKey::get('SERVER_TROJAN_LAST_CHECK_AT', $trojans[$k]['id']));
array_push($trojan, $trojans[$k]);
}

View File

@ -27,6 +27,7 @@ CREATE TABLE `v2_coupon` (
`type` tinyint(1) NOT NULL,
`value` int(11) NOT NULL,
`limit_use` int(11) DEFAULT NULL,
`limit_plan_ids` varchar(255) DEFAULT NULL,
`started_at` int(11) NOT NULL,
`ended_at` int(11) NOT NULL,
`created_at` int(11) NOT NULL,
@ -281,4 +282,4 @@ CREATE TABLE `v2_user` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2020-06-11 12:38:33
-- 2020-06-13 10:43:44

View File

@ -280,3 +280,6 @@ ADD `rate` varchar(11) COLLATE 'utf8mb4_general_ci' NOT NULL AFTER `name`;
ALTER TABLE `v2_server_log`
ADD `method` varchar(255) NOT NULL AFTER `rate`;
ALTER TABLE `v2_coupon`
ADD `limit_plan_ids` varchar(255) NULL AFTER `limit_use`;