mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
Merge pull request #524 from coldice945/fix-dowload-app-name
This commit is contained in:
commit
1d1ac37d4d
@ -23,7 +23,7 @@ class Clash
|
|||||||
$appName = config('v2board.app_name', 'V2Board');
|
$appName = config('v2board.app_name', 'V2Board');
|
||||||
header("subscription-userinfo: upload={$user['u']}; download={$user['d']}; total={$user['transfer_enable']}; expire={$user['expired_at']}");
|
header("subscription-userinfo: upload={$user['u']}; download={$user['d']}; total={$user['transfer_enable']}; expire={$user['expired_at']}");
|
||||||
header('profile-update-interval: 24');
|
header('profile-update-interval: 24');
|
||||||
header("content-disposition:attachment;filename={$appName}");
|
header("content-disposition:attachment;filename*=UTF-8''".rawurlencode($appName));
|
||||||
$defaultConfig = base_path() . '/resources/rules/default.clash.yaml';
|
$defaultConfig = base_path() . '/resources/rules/default.clash.yaml';
|
||||||
$customConfig = base_path() . '/resources/rules/custom.clash.yaml';
|
$customConfig = base_path() . '/resources/rules/custom.clash.yaml';
|
||||||
if (\File::exists($customConfig)) {
|
if (\File::exists($customConfig)) {
|
||||||
|
@ -23,7 +23,7 @@ class Stash
|
|||||||
$appName = config('v2board.app_name', 'V2Board');
|
$appName = config('v2board.app_name', 'V2Board');
|
||||||
header("subscription-userinfo: upload={$user['u']}; download={$user['d']}; total={$user['transfer_enable']}; expire={$user['expired_at']}");
|
header("subscription-userinfo: upload={$user['u']}; download={$user['d']}; total={$user['transfer_enable']}; expire={$user['expired_at']}");
|
||||||
header('profile-update-interval: 24');
|
header('profile-update-interval: 24');
|
||||||
header("content-disposition: filename={$appName}");
|
header("content-disposition: filename*=UTF-8''".rawurlencode($appName));
|
||||||
// 暂时使用clash配置文件,后续根据Stash更新情况更新
|
// 暂时使用clash配置文件,后续根据Stash更新情况更新
|
||||||
$defaultConfig = base_path() . '/resources/rules/default.clash.yaml';
|
$defaultConfig = base_path() . '/resources/rules/default.clash.yaml';
|
||||||
$customConfig = base_path() . '/resources/rules/custom.clash.yaml';
|
$customConfig = base_path() . '/resources/rules/custom.clash.yaml';
|
||||||
|
Loading…
Reference in New Issue
Block a user