Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yswenli committed Aug 15, 2021
1 parent d07d0dc commit ebeebc8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
8 changes: 4 additions & 4 deletions SAEA.WebRedisManager/SAEA.WebRedisManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.11.34" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.36" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="5.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="5.0.1" />
<PackageReference Include="SAEA.MVC" Version="6.2.6.4" />
<PackageReference Include="SAEA.RedisSocket" Version="6.2.6.4" />
<PackageReference Include="SAEA.WebSocket" Version="6.2.6.4" />
<PackageReference Include="SAEA.MVC" Version="6.2.6.6" />
<PackageReference Include="SAEA.RedisSocket" Version="6.2.6.6" />
<PackageReference Include="SAEA.WebSocket" Version="6.2.6.6" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion SAEA.WebRedisManager/wwwroot/Index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<a href="https://github.com/yswenli/WebRedisManager/releases" target="_blank" style="font-size: 35px;color: #c5c5c5;display: inline-block;margin-top: 8px;">
<img id="markImg" src="/content/img/6139455.png" />&nbsp;WebRedisManager
<span style="font-size:15px;">
v6.2.6.4
v6.2.6.6
</span>
</a>
<ul class="layui-nav">
Expand Down
6 changes: 6 additions & 0 deletions SAEA.WebRedisManager/wwwroot/IndexContent.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
同时它也是一个开源的项目,详情点击:<a href="https://www.cnblogs.com/yswenli/p/9460527.html" target="_blank">https://www.cnblogs.com/yswenli/p/9460527.html</a>,项目源码地址:
<a href="https://github.com/yswenli/WebRedisManager" target="_blank">https://github.com/yswenli/WebRedisManager</a><br />
</p>
<p class="layui-elem-quote">
<b>v 6.2.6.6</b><br />
<span>1.大幅度优化了SAEA.RedisSocket和SAEA.Mvc的性能</span><br />
<span>2.取消了登录验证码</span><br />
<span>3.调整了SAEA.Socket复用相关的细节</span><br />
</p>
<p class="layui-elem-quote">
<b>v 6.2.6.2</b><br />
<span>1.修复saea.sockets底层复用池</span><br />
Expand Down
26 changes: 16 additions & 10 deletions SAEA.WebRedisManager/wwwroot/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>login - WebRedisManager</title>
<title>login - SAEA.WebRedisManager</title>
<meta name="renderer" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
Expand Down Expand Up @@ -31,7 +31,7 @@ <h2>WebRedisManager</h2>
<label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
<input type="password" name="password" id="password" lay-verify="required" placeholder="Password" class="layui-input" maxlength="20" />
</div>
<div class="layui-form-item" style="display:none;">
<!--<div class="layui-form-item">
<div class="layui-row">
<div class="layui-col-xs7">
<label class="layadmin-user-login-icon layui-icon layui-icon-vercode" for="LAY-user-login-vercode"></label>
Expand All @@ -43,15 +43,15 @@ <h2>WebRedisManager</h2>
</div>
</div>
</div>
</div>
</div>-->
<div class="layui-form-item">
<button id="loginBtn" class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-login-submit">登 入</button>
</div>
</div>
</div>

<div class="layui-trans layadmin-user-login-footer">
<p>© 2021 <a href="https://github.com/yswenli/WebRedisManager" target="_blank">yswenli version:6.2.6.4</a></p>
<p>© 2021 <a href="https://github.com/yswenli/WebRedisManager" target="_blank">yswenli version:6.2.6.6</a></p>
</div>

</div>
Expand All @@ -61,6 +61,12 @@ <h2>WebRedisManager</h2>

var layer = layui.layer, form = layui.form, $ = layui.$;

$.get("/user/authenticated", null, function (adata) {
if (adata.Code === 1 && adata.Data === true) {
location.href = "/";
}
});

$.get("/api/user/isempty", null, function (data) {

if (data.Code === 1) {
Expand All @@ -84,11 +90,11 @@ <h2>WebRedisManager</h2>
$("#loginBtn").click();
}
});
$("#vercode").keypress(function (e) {
if (e.which === 13) {
$("#loginBtn").click();
}
});
//$("#vercode").keypress(function (e) {
// if (e.which === 13) {
// $("#loginBtn").click();
// }
//});

$("#loginBtn").click(function () {

Expand All @@ -110,7 +116,7 @@ <h2>WebRedisManager</h2>
}
else {
layer.msg('登录失败,' + data.Message, { offset: '15px', icon: 2, time: 3000, shade: 0.3, shadeClose: false }, null);
$("#vercode-img").attr("src", "/api/Verification/index/4?t=" + new Date().getTime());
//$("#vercode-img").attr("src", "/api/Verification/index/4?t=" + new Date().getTime());
}
});
});
Expand Down

0 comments on commit ebeebc8

Please sign in to comment.