mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 11:09:11 +08:00
update: app version
This commit is contained in:
parent
732edcad57
commit
7a9527d48a
@ -132,6 +132,14 @@ class ConfigController extends Controller
|
|||||||
'telegram' => [
|
'telegram' => [
|
||||||
'telegram_bot_enable' => config('v2board.telegram_bot_enable', 0),
|
'telegram_bot_enable' => config('v2board.telegram_bot_enable', 0),
|
||||||
'telegram_bot_token' => config('v2board.telegram_bot_token')
|
'telegram_bot_token' => config('v2board.telegram_bot_token')
|
||||||
|
],
|
||||||
|
'app' => [
|
||||||
|
'windows_version' => config('v2board.window_version'),
|
||||||
|
'windows_download_url' => config('v2board.windows_download_url'),
|
||||||
|
'macos_version' => config('v2board.macos_version'),
|
||||||
|
'macos_download_url' => config('v2board.macos_download_url'),
|
||||||
|
'android_version' => config('v2board.android_version'),
|
||||||
|
'android_download_url' => config('v2board.android_download_url')
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
@ -51,14 +51,34 @@ class AppController extends Controller
|
|||||||
die(Yaml::dump($config));
|
die(Yaml::dump($config));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getVersion()
|
public function getVersion(Request $request)
|
||||||
{
|
{
|
||||||
|
if (strpos($request->header('user-agent'), 'tunnelab/4.0.0') !== -1) {
|
||||||
|
if (strpos($request->header('user-agent'), 'Win64') !== -1) {
|
||||||
|
return response([
|
||||||
|
'data' => [
|
||||||
|
'version' => config('v2board.windows_version'),
|
||||||
|
'download_url' => config('v2board.windows_download_url')
|
||||||
|
]
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
return response([
|
||||||
|
'data' => [
|
||||||
|
'version' => config('v2board.macos_version'),
|
||||||
|
'download_url' => config('v2board.macos_download_url')
|
||||||
|
]
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
return response([
|
return response([
|
||||||
'data' => [
|
'data' => [
|
||||||
'version' => '4.0.0',
|
'windows_version' => config('v2board.windows_version'),
|
||||||
'download_url' => '',
|
'windows_download_url' => config('v2board.windows_download_url'),
|
||||||
'android_version' => '4.0.0',
|
'macos_version' => config('v2board.macos_version'),
|
||||||
'android_download_url' => ''
|
'macos_download_url' => config('v2board.macos_download_url'),
|
||||||
|
'android_version' => config('v2board.android_version'),
|
||||||
|
'android_download_url' => config('v2board.android_download_url')
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,14 @@ class ConfigSave extends FormRequest
|
|||||||
'telegram_bot_enable' => 'in:0,1',
|
'telegram_bot_enable' => 'in:0,1',
|
||||||
'telegram_bot_token' => '',
|
'telegram_bot_token' => '',
|
||||||
'telegram_discuss_id' => '',
|
'telegram_discuss_id' => '',
|
||||||
'telegram_channel_id' => ''
|
'telegram_channel_id' => '',
|
||||||
|
// app
|
||||||
|
'windows_version' => '',
|
||||||
|
'windows_download_url' => '',
|
||||||
|
'macos_version' => '',
|
||||||
|
'macos_download_url' => '',
|
||||||
|
'android_version' => '',
|
||||||
|
'android_download_url' => ''
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ namespace App\Utils;
|
|||||||
class CacheKey
|
class CacheKey
|
||||||
{
|
{
|
||||||
CONST KEYS = [
|
CONST KEYS = [
|
||||||
'EMAIL_VERIFY_CODE' => '邮箱验证吗',
|
'EMAIL_VERIFY_CODE' => '邮箱验证码',
|
||||||
'LAST_SEND_EMAIL_VERIFY_TIMESTAMP' => '最后一次发送邮箱验证码时间',
|
'LAST_SEND_EMAIL_VERIFY_TIMESTAMP' => '最后一次发送邮箱验证码时间',
|
||||||
'SERVER_V2RAY_ONLINE_USER' => '节点在线用户',
|
'SERVER_V2RAY_ONLINE_USER' => '节点在线用户',
|
||||||
'SERVER_V2RAY_LAST_CHECK_AT' => '节点最后检查时间',
|
'SERVER_V2RAY_LAST_CHECK_AT' => '节点最后检查时间',
|
||||||
|
Loading…
Reference in New Issue
Block a user