mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: uniproxy
This commit is contained in:
parent
cc43ae5d38
commit
3ba1e87222
@ -23,19 +23,6 @@ class CommController extends Controller
|
|||||||
'app_description' => config('v2board.app_description'),
|
'app_description' => config('v2board.app_description'),
|
||||||
'app_url' => config('v2board.app_url'),
|
'app_url' => config('v2board.app_url'),
|
||||||
'logo' => config('v2board.logo'),
|
'logo' => config('v2board.logo'),
|
||||||
|
|
||||||
// TODO:REMOVE:1.7.0
|
|
||||||
|
|
||||||
'tosUrl' => config('v2board.tos_url'),
|
|
||||||
'isEmailVerify' => (int)config('v2board.email_verify', 0) ? 1 : 0,
|
|
||||||
'isInviteForce' => (int)config('v2board.invite_force', 0) ? 1 : 0,
|
|
||||||
'emailWhitelistSuffix' => (int)config('v2board.email_whitelist_enable', 0)
|
|
||||||
? $this->getEmailSuffix()
|
|
||||||
: 0,
|
|
||||||
'isRecaptcha' => (int)config('v2board.recaptcha_enable', 0) ? 1 : 0,
|
|
||||||
'recaptchaSiteKey' => config('v2board.recaptcha_site_key'),
|
|
||||||
'appDescription' => config('v2board.app_description'),
|
|
||||||
'appUrl' => config('v2board.app_url'),
|
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -109,8 +109,8 @@ class UniProxyController extends Controller
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$response['base_config'] = [
|
$response['base_config'] = [
|
||||||
'push_interval' => config('v2board.server_push_interval', 60),
|
'push_interval' => (int)config('v2board.server_push_interval', 60),
|
||||||
'pull_interval' => config('v2board.server_pull_interval', 60)
|
'pull_interval' => (int)config('v2board.server_pull_interval', 60)
|
||||||
];
|
];
|
||||||
if ($this->nodeInfo['route_id']) {
|
if ($this->nodeInfo['route_id']) {
|
||||||
$response['routes'] = $this->serverService->getRoutes($this->nodeInfo['route_id']);
|
$response['routes'] = $this->serverService->getRoutes($this->nodeInfo['route_id']);
|
||||||
|
Loading…
Reference in New Issue
Block a user