Code improve

This commit is contained in:
兔姬桑
2020-11-16 14:44:43 +08:00
parent 8e4693fca9
commit b44c745c8a
205 changed files with 9134 additions and 14703 deletions

View File

@@ -75,18 +75,18 @@ class ToolsController extends Controller
$data = [];
foreach ($content->port_password as $port => $passwd) {
$data[] = [
'u' => 0,
'd' => 0,
'enable' => 1,
'method' => $method,
'obfs' => $obfs,
'obfs_param' => empty($obfs_param) ? '' : $obfs_param,
'passwd' => $passwd,
'port' => $port,
'protocol' => $protocol,
'protocol_param' => empty($protocol_param) ? '' : $protocol_param,
'u' => 0,
'd' => 0,
'enable' => 1,
'method' => $method,
'obfs' => $obfs,
'obfs_param' => empty($obfs_param) ? '' : $obfs_param,
'passwd' => $passwd,
'port' => $port,
'protocol' => $protocol,
'protocol_param' => empty($protocol_param) ? '' : $protocol_param,
'transfer_enable' => $transfer_enable,
'user' => date('Ymd').'_IMPORT_'.$port,
'user' => date('Ymd').'_IMPORT_'.$port,
];
}