@@ -889,30 +889,21 @@ export default {
889889 function handleUUIDInput() {
890890 const input = document.getElementById('uuidInput');
891891 const inputValue = input.value.trim();
892- const customPath = " ${customPath}" ;
892+ const customPath = ' ${customPath}' ;
893893
894894 if (inputValue) {
895895 addTerminalLine('connect ' + inputValue, 'output');
896896
897897 // 如果启用了 d 变量
898898 if (customPath) {
899899 const cleanPath = customPath.startsWith('/') ? customPath : '/' + customPath;
900- const cleanInput = inputValue.startsWith('/') ? inputValue : '/' + inputValue;
901- const pathWithoutSlash = cleanPath.replace(/^\//, '');
902- const inputWithoutSlash = cleanInput.replace(/^\//, '');
903-
904- if (inputWithoutSlash === pathWithoutSlash) {
905- addTerminalLine('正在连接...', 'output');
900+ addTerminalLine('正在连接...', 'output');
901+ setTimeout(() => {
902+ addTerminalLine('连接成功!返回结果...', 'success');
906903 setTimeout(() => {
907- addTerminalLine('连接成功!返回结果...', 'success');
908- setTimeout(() => {
909- window.location.href = cleanPath;
910- }, 1000);
911- }, 500);
912- } else {
913- addTerminalLine('错误: 路径不匹配', 'error');
914- addTerminalLine('请重新输入正确的自定义路径', 'output');
915- }
904+ window.location.href = cleanPath;
905+ }, 1000);
906+ }, 500);
916907 } else {
917908 // 使用 UUID 模式
918909 if (isValidUUID(inputValue)) {
@@ -937,7 +928,6 @@ export default {
937928 createMatrixRain();
938929
939930 const input = document.getElementById('uuidInput');
940- input.focus();
941931 input.addEventListener('keypress', function(e) {
942932 if (e.key === 'Enter') {
943933 handleUUIDInput();
@@ -1020,7 +1010,7 @@ export default {
10201010};
10211011
10221012function generateQuantumultConfig(links) {
1023- return btoa(links.join('\n'));
1013+ return btoa(links.join('\n'));
10241014}
10251015
10261016async function handleSubscriptionRequest(request, user, url = null) {
@@ -1860,7 +1850,7 @@ async function handleSubscriptionPage(request, user = null) {
18601850 <div class="matrix-bg"></div>
18611851 <div class="matrix-rain"></div>
18621852 <div class="matrix-code-rain" id="matrixCodeRain"></div>
1863- <div class="matrix-text">代理订阅中心 v2.2 </div>
1853+ <div class="matrix-text">代理订阅中心 v1.1 </div>
18641854 <div class="container">
18651855 <div class="header">
18661856 <h1 class="title">代理订阅中心</h1>
0 commit comments