This commit is contained in:
Tokumeikoi 2020-08-20 14:31:35 +08:00
commit ce8652fe20

View File

@ -91,6 +91,7 @@ class ClientController extends Controller
private function quantumultX($user, $vmess = [], $trojan = []) private function quantumultX($user, $vmess = [], $trojan = [])
{ {
$uri = ''; $uri = '';
header("subscription-userinfo: upload={$user->u}; download={$user->d}; total={$user->transfer_enable}; expire={$user->expired_at}");
foreach ($vmess as $item) { foreach ($vmess as $item) {
$uri .= QuantumultX::buildVmess($user->uuid, $item); $uri .= QuantumultX::buildVmess($user->uuid, $item);
} }