diff --git a/app/Controllers/LinkController.php b/app/Controllers/LinkController.php
index ec09096c..192457a0 100644
--- a/app/Controllers/LinkController.php
+++ b/app/Controllers/LinkController.php
@@ -258,9 +258,9 @@ class LinkController extends BaseController
$v2ray_group .= "";
} else {
if ($quantumult == 1) {
- $v2ray_group .= "vmess://" . base64_encode($v2ray['ps'] . " = vmess, " . $v2ray['add'] . ", " . $v2ray['port'] . ", chacha20-ietf-poly1305, \"" . $v2ray['id'] . "\", group=" . Config::get('appName') . "" . $v2ray_tls . $v2ray_obfs) . "\n";
+ $v2ray_group .= "vmess://" . base64_encode($v2ray['ps'] . " = vmess, " . $v2ray['add'] . ", " . $v2ray['port'] . ", chacha20-ietf-poly1305, \"" . $v2ray['id'] . "\", group=" . Config::get('appName') ."_v2". "" . $v2ray_tls . $v2ray_obfs) . "\n";
} else {
- $v2ray_group .= $v2ray['ps'] . " = vmess, " . $v2ray['add'] . ", " . $v2ray['port'] . ", chacha20-ietf-poly1305, \"" . $v2ray['id'] . "\"" . $v2ray_tls . $v2ray_obfs . "\n";
+ $v2ray_group .= $v2ray['ps'] . " = vmess, " . $v2ray['add'] . ", " . $v2ray['port'] . ", chacha20-ietf-poly1305, \"" . $v2ray['id'] . "\"" .", group=" . Config::get('appName') ."_v2". $v2ray_tls . $v2ray_obfs . "\n";
}
}
}
@@ -275,7 +275,7 @@ class LinkController extends BaseController
foreach($items as $item) {
- $ss_group .= $item['remark'] . " = shadowsocks, " . $item['address'] . ", " . $item['port'] . ", " . $item['method'] . ", \"" . $item['passwd'] . "\", upstream-proxy=false, upstream-proxy-auth=false" . URL::getSurgeObfs($item) . "\n";
+ $ss_group .= $item['remark'] . " = shadowsocks, " . $item['address'] . ", " . $item['port'] . ", " . $item['method'] . ", \"" . $item['passwd'] . "\", upstream-proxy=false, upstream-proxy-auth=false" . URL::getSurgeObfs($item) . ",group=".Config::get('appName')."\n";
$ss_name .= "\n" . $item['remark'];
}
@@ -284,7 +284,7 @@ class LinkController extends BaseController
foreach($ssrs as $item) {
- $ssr_group .= $item['remark'] . " = shadowsocksr, " . $item['address'] . ", " . $item['port'] . ", " . $item['method'] . ", \"" . $item['passwd'] . "\", protocol=" . $item['protocol'] . ", protocol_param=" . $item['protocol_param'] . ", obfs=" . $item['obfs'] . ", obfs_param=\"" . $item['obfs_param'] . "\"\n";
+ $ssr_group .= $item['remark'] . " = shadowsocksr, " . $item['address'] . ", " . $item['port'] . ", " . $item['method'] . ", \"" . $item['passwd'] . "\", protocol=" . $item['protocol'] . ", protocol_param=" . $item['protocol_param'] . ", obfs=" . $item['obfs'] . ", obfs_param=\"" . $item['obfs_param'] . "\"".",group=".Config::get('appName')."\n";
$ssr_name .= "\n" . $item['remark'];
}
diff --git a/app/Utils/URL.php b/app/Utils/URL.php
index 1206bd27..6a9ec794 100644
--- a/app/Utils/URL.php
+++ b/app/Utils/URL.php
@@ -490,18 +490,30 @@ class URL
if (count($node_explode) >= 6) {
$item = array_merge($item, URL::parse_args($node_explode[5]));
+
+ if (array_key_exists("server",$item)){
+ $item['add']=$item['server'];
+ unset($item['server']);
+ }
}
return $item;
}
public static function getAllV2ray($user) {
- $nodes = Node::where('sort', 11)->where(
- function ($query) use ($user){
- $query->where("node_group", "=", $user->node_group)
- ->orWhere("node_group", "=", 0);
- }
- )->where("type", "1")->where("node_class", "<=", $user->class)->orderBy("name")->get();
+ if ($user->is_admin){
+
+ $nodes = Node::where('sort', 11)->where("type", "1")->orderBy("name")->get();
+
+ }else{
+
+ $nodes = Node::where('sort', 11)->where(
+ function ($query) use ($user){
+ $query->where("node_group", "=", $user->node_group)
+ ->orWhere("node_group", "=", 0);
+ }
+ )->where("type", "1")->where("node_class", "<=", $user->class)->orderBy("name")->get();
+ }
$return_array = array();
diff --git a/resources/views/material/user/index.tpl b/resources/views/material/user/index.tpl
index 19bef971..94be3956 100644
--- a/resources/views/material/user/index.tpl
+++ b/resources/views/material/user/index.tpl
@@ -545,10 +545,17 @@
+
flash_auto Quantumult(Vmess订阅):
+
+
+
+
- flash_auto Quantumult(施工中):
-
-
+
+
+
+
+
+
+
+
+{include file='user/footer.tpl'}
+
+
+
+
+
+
+
+
+{if $recaptcha_sitekey != null}{/if}