fix: 提升代码质量,增加测试用例

This commit is contained in:
lyz05
2022-11-09 18:28:35 +08:00
parent 709b94cf0c
commit 20a790c2bc
20 changed files with 158 additions and 119 deletions

View File

@@ -11,18 +11,19 @@
<div class="container">
<h3>温馨提示:</h3>
<p>
带filter的是过滤无效节点并精选的结果建议优先使用。强烈建议使用clash作为客户端具有自动测试节点的功能和完善的规则。</p>
带filter的是过滤无效节点并精选的结果建议优先使用。强烈建议使用clash作为客户端具有自动测试节点的功能和完善的规则。
</p>
<p>
相关软件<a href="/sub/download">下载链接</a><br>
</p>
<p>
<p class="card-heading">Telegram 代理</p>
<p>
<a href="tg://proxy?server=vipserv.ccloud.live&amp;port=443&amp;secret=dddd561961fea026e517764b084bd64072">域名</a>
<a href="tg://proxy?server=167.235.77.32&amp;port=443&amp;secret=dddd561961fea026e517764b084bd64072">IPV4</a>
<a href="tg://proxy?server=2a01:4f8:1c1e:eeb6::1&amp;port=443&amp;secret=dddd561961fea026e517764b084bd64072">IPV6</a>
</p>
</p>
<h3>Your Subscribe:</h3>
<p>
当前账户过期时间:<%= expire %><br>
@@ -32,13 +33,14 @@
<%= path %>&ctype=<%= index %>
</a>
<br>
<% if (ret[index]) { %>
过去已用:<%= ret[index].total_use %> 总量:<%= ret[index].total %> 过期时间:<%= ret[index].expire %> 用量比:<%= ret[index].use_percent %>%
日期比:<%= ret[index].date_percent %>%<br>
<% } %>
<br>
<% if (ret[index]) { %>
过去已用:<%= ret[index].total_use %> 总量:<%= ret[index].total %> 过期时间:<%= ret[index].expire %>
用量比:<%= ret[index].use_percent %>%
日期比:<%= ret[index].date_percent %>%<br>
<% } %>
<% }; %>
<% } %>
</p>
</div>
</body>

View File

@@ -54,6 +54,7 @@
<div class="form-group">
<label class="col-sm-1 control-label">视频网址</label>
<div class="col-sm-5">
<!--suppress HtmlFormInputWithoutLabel -->
<input type="text" class="form-control" placeholder="URL" name="url">
</div>
</div>

View File

@@ -1,4 +1,4 @@
<html>
<html lang="zh">
<head>
<title><%= error.status %> <%= message %></title>