mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
Compare commits
4 Commits
9344041256
...
2a8230ed3d
Author | SHA1 | Date | |
---|---|---|---|
|
2a8230ed3d | ||
|
3a05281a9f | ||
|
2fdffab3c6 | ||
|
603b240733 |
@ -51,15 +51,16 @@ class MigrateFromV2b extends Command
|
|||||||
],
|
],
|
||||||
'1.7.3' => [
|
'1.7.3' => [
|
||||||
'ALTER TABLE `v2_stat_order` RENAME TO `v2_stat`;',
|
'ALTER TABLE `v2_stat_order` RENAME TO `v2_stat`;',
|
||||||
"ALTER TABLE `v2_stat` CHANGE COLUMN order_amount order_total INT COMMENT '订单合计';",
|
"ALTER TABLE `v2_stat` CHANGE COLUMN order_amount paid_total INT COMMENT '订单合计';",
|
||||||
|
"ALTER TABLE `v2_stat` CHANGE COLUMN order_count paid_count INT COMMENT '邀请佣金';",
|
||||||
"ALTER TABLE `v2_stat` CHANGE COLUMN commission_amount commission_total INT COMMENT '佣金合计';",
|
"ALTER TABLE `v2_stat` CHANGE COLUMN commission_amount commission_total INT COMMENT '佣金合计';",
|
||||||
"ALTER TABLE `v2_stat`
|
"ALTER TABLE `v2_stat`
|
||||||
ADD COLUMN paid_count INT NULL,
|
ADD COLUMN order_count INT NULL,
|
||||||
ADD COLUMN paid_total INT NULL,
|
ADD COLUMN order_total INT NULL,
|
||||||
ADD COLUMN register_count INT NULL,
|
ADD COLUMN register_count INT NULL,
|
||||||
ADD COLUMN invite_count INT NULL,
|
ADD COLUMN invite_count INT NULL,
|
||||||
ADD COLUMN transfer_used_total VARCHAR(32) NULL;
|
ADD COLUMN transfer_used_total VARCHAR(32) NULL;
|
||||||
",
|
",
|
||||||
"CREATE TABLE `v2_log` (
|
"CREATE TABLE `v2_log` (
|
||||||
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
`title` TEXT NOT NULL,
|
`title` TEXT NOT NULL,
|
||||||
|
@ -74,6 +74,8 @@ class General
|
|||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tlsSettings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = $tlsSettings['serverName'];
|
$config['sni'] = $tlsSettings['serverName'];
|
||||||
|
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allowInsecure'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((string)$server['network'] === 'tcp') {
|
if ((string)$server['network'] === 'tcp') {
|
||||||
@ -122,6 +124,8 @@ class General
|
|||||||
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
||||||
$config['sni'] = $tlsSettings['server_name'];
|
$config['sni'] = $tlsSettings['server_name'];
|
||||||
$config['security'] = "tls";
|
$config['security'] = "tls";
|
||||||
|
if (isset($tlsSettings['allow_insecure']) && !empty($tlsSettings['allow_insecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allow_insecure'];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: //reality
|
case 2: //reality
|
||||||
|
@ -72,6 +72,8 @@ class Passwall
|
|||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tlsSettings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = $tlsSettings['serverName'];
|
$config['sni'] = $tlsSettings['serverName'];
|
||||||
|
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allowInsecure'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((string)$server['network'] === 'tcp') {
|
if ((string)$server['network'] === 'tcp') {
|
||||||
@ -120,6 +122,8 @@ class Passwall
|
|||||||
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
||||||
$config['sni'] = $tlsSettings['server_name'];
|
$config['sni'] = $tlsSettings['server_name'];
|
||||||
$config['security'] = "tls";
|
$config['security'] = "tls";
|
||||||
|
if (isset($tlsSettings['allow_insecure']) && !empty($tlsSettings['allow_insecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allow_insecure'];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: //reality
|
case 2: //reality
|
||||||
|
@ -72,6 +72,8 @@ class SSRPlus
|
|||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tlsSettings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = $tlsSettings['serverName'];
|
$config['sni'] = $tlsSettings['serverName'];
|
||||||
|
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allowInsecure'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((string)$server['network'] === 'ws') {
|
if ((string)$server['network'] === 'ws') {
|
||||||
@ -108,6 +110,8 @@ class SSRPlus
|
|||||||
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
||||||
$config['sni'] = $tlsSettings['server_name'];
|
$config['sni'] = $tlsSettings['server_name'];
|
||||||
$config['security'] = "tls";
|
$config['security'] = "tls";
|
||||||
|
if (isset($tlsSettings['allow_insecure']) && !empty($tlsSettings['allow_insecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allow_insecure'];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: //reality
|
case 2: //reality
|
||||||
|
@ -70,6 +70,8 @@ class SagerNet
|
|||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tlsSettings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = urlencode($tlsSettings['serverName']);
|
$config['sni'] = urlencode($tlsSettings['serverName']);
|
||||||
|
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allowInsecure'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((string)$server['network'] === 'tcp') {
|
if ((string)$server['network'] === 'tcp') {
|
||||||
|
@ -150,8 +150,8 @@ class Shadowrocket
|
|||||||
$config['tls'] = 1;
|
$config['tls'] = 1;
|
||||||
if ($server['tls_settings']) {
|
if ($server['tls_settings']) {
|
||||||
$tlsSettings = $server['tls_settings'];
|
$tlsSettings = $server['tls_settings'];
|
||||||
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
if (isset($tlsSettings['allow_insecure']) && !empty($tlsSettings['allow_insecure']))
|
||||||
$config['allowInsecure'] = (int)$tlsSettings['allowInsecure'];
|
$config['allowInsecure'] = (int)$tlsSettings['allow_insecure'];
|
||||||
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
||||||
$config['peer'] = $tlsSettings['server_name'];
|
$config['peer'] = $tlsSettings['server_name'];
|
||||||
}
|
}
|
||||||
|
@ -189,6 +189,8 @@ class Stash
|
|||||||
case 1:
|
case 1:
|
||||||
if ($server['tls_settings']) {
|
if ($server['tls_settings']) {
|
||||||
$tlsSettings = $server['tls_settings'];
|
$tlsSettings = $server['tls_settings'];
|
||||||
|
if (isset($tlsSettings['allow_insecure']) && !empty($tlsSettings['allow_insecure']))
|
||||||
|
$array['skip-cert-verify'] = ($tlsSettings['allow_insecure'] ? true : false);
|
||||||
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
||||||
$array['servername'] = $tlsSettings['server_name'];
|
$array['servername'] = $tlsSettings['server_name'];
|
||||||
}
|
}
|
||||||
|
@ -75,6 +75,8 @@ class V2rayN
|
|||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tlsSettings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = $tlsSettings['serverName'];
|
$config['sni'] = $tlsSettings['serverName'];
|
||||||
|
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allowInsecure'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((string)$server['network'] === 'tcp') {
|
if ((string)$server['network'] === 'tcp') {
|
||||||
@ -123,6 +125,8 @@ class V2rayN
|
|||||||
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
||||||
$config['sni'] = $tlsSettings['server_name'];
|
$config['sni'] = $tlsSettings['server_name'];
|
||||||
$config['security'] = "tls";
|
$config['security'] = "tls";
|
||||||
|
if (isset($tlsSettings['allow_insecure']) && !empty($tlsSettings['allow_insecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allow_insecure'];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: //reality
|
case 2: //reality
|
||||||
|
@ -76,6 +76,8 @@ class V2rayNG
|
|||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tlsSettings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = $tlsSettings['serverName'];
|
$config['sni'] = $tlsSettings['serverName'];
|
||||||
|
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allowInsecure'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((string)$server['network'] === 'tcp') {
|
if ((string)$server['network'] === 'tcp') {
|
||||||
@ -124,6 +126,8 @@ class V2rayNG
|
|||||||
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
||||||
$config['sni'] = $tlsSettings['server_name'];
|
$config['sni'] = $tlsSettings['server_name'];
|
||||||
$config['security'] = "tls";
|
$config['security'] = "tls";
|
||||||
|
if (isset($tlsSettings['allow_insecure']) && !empty($tlsSettings['allow_insecure']))
|
||||||
|
$config['allowInsecure'] = $tlsSettings['allow_insecure'];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: //reality
|
case 2: //reality
|
||||||
|
Loading…
Reference in New Issue
Block a user