mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
Fix Surge Subscribing issue
This commit is contained in:
parent
32c539d2c0
commit
ecfb9ce8b0
@ -52,8 +52,8 @@ class Surge
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Subscription link
|
// Subscription link
|
||||||
$subsURL = config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token'];
|
|
||||||
$subsDomain = $_SERVER['SERVER_NAME'];
|
$subsDomain = $_SERVER['SERVER_NAME'];
|
||||||
|
$subsURL = 'https://' . $subsDomain . '/api/v1/client/subscribe?token=' . $user['token'];
|
||||||
|
|
||||||
$config = str_replace('$subs_link', $subsURL, $config);
|
$config = str_replace('$subs_link', $subsURL, $config);
|
||||||
$config = str_replace('$subs_domain', $subsDomain, $config);
|
$config = str_replace('$subs_domain', $subsDomain, $config);
|
||||||
|
Loading…
Reference in New Issue
Block a user