修改界面
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
@if(item.Id != 1 && item.Id != 2 && item.Id != 6 && item.Id != 13 && item.Id != 17 && item.Id != 25) {
|
@if(item.Id != 1 && item.Id != 2 && item.Id != 6 && item.Id != 13 && item.Id != 17 && item.Id != 25) {
|
||||||
<div class="item" style="width:100%;">
|
<div class="item" style="width:100%;">
|
||||||
@*<p><img src="@P(item.Image)"></p>*@
|
@*<p><img src="@P(item.Image)"></p>*@
|
||||||
@if (item.Id != 20 && item.Id != 26){
|
@if (item.Id != 20){
|
||||||
<p>@item.Name</p>
|
<p>@item.Name</p>
|
||||||
<p><a href="@item.SimulatorDownloadUrl"> <button type="button" style="width:90%;" class="btnBlue">SSTP客户端下载</button></a></p>
|
<p><a href="@item.SimulatorDownloadUrl"> <button type="button" style="width:90%;" class="btnBlue">SSTP客户端下载</button></a></p>
|
||||||
}
|
}
|
||||||
@@ -80,6 +80,6 @@
|
|||||||
<p><a href="https://mp4.juip.com/%E9%BA%92%E9%BA%9F%E5%AE%89%E5%8D%93HZ%E7%89%88.apk"> <button style="width:90%;" type="button" class="btnBlue">麒麟IP-安卓端</button></a></p><br>
|
<p><a href="https://mp4.juip.com/%E9%BA%92%E9%BA%9F%E5%AE%89%E5%8D%93HZ%E7%89%88.apk"> <button style="width:90%;" type="button" class="btnBlue">麒麟IP-安卓端</button></a></p><br>
|
||||||
<p><a href="https://mp4.juip.com/lb-dl.zip"> <button style="width:90%;" type="button" class="btnBlue">猎豹IP-电脑端</button></a></p><br>
|
<p><a href="https://mp4.juip.com/lb-dl.zip"> <button style="width:90%;" type="button" class="btnBlue">猎豹IP-电脑端</button></a></p><br>
|
||||||
<!-- <p><a href="https://mp4.juip.com/%E7%8C%8E%E8%B1%B9%E5%AE%89%E5%8D%93kiev2-HZ%E7%89%88.apk"> <button style="width:90%;" type="button" class="btnBlue">猎豹IP-安卓ikev</button></a></p><br> -->
|
<!-- <p><a href="https://mp4.juip.com/%E7%8C%8E%E8%B1%B9%E5%AE%89%E5%8D%93kiev2-HZ%E7%89%88.apk"> <button style="width:90%;" type="button" class="btnBlue">猎豹IP-安卓ikev</button></a></p><br> -->
|
||||||
<p><a href="https://mp4.juip.com/lbdl.apk"> <button style="width:90%;" type="button" class="btnBlue">猎豹IP-安卓</button></a></p><br>
|
<p><a href="https://mp4.juip.com/lbdlsstp.apk"> <button style="width:90%;" type="button" class="btnBlue">猎豹IP-安卓</button></a></p><br>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item" style="margin-bottom: 5px;width:200px;">
|
<div class="item" style="margin-bottom: 5px;width:200px;">
|
||||||
<a href="https://mp4.juip.com/lbdl.apk"> <button type="button" class="btn btn-primary" style="width: 99%;margin-right:5px">猎豹IP-安卓</button></a>
|
<a href="https://mp4.juip.com/lbdlsstp.apk"> <button type="button" class="btn btn-primary" style="width: 99%;margin-right:5px">猎豹IP-安卓</button></a>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="item" style="margin-bottom: 5px;width:200px;">
|
<!-- <div class="item" style="margin-bottom: 5px;width:200px;">
|
||||||
<a href="https://mp4.juip.com/%E7%8C%8E%E8%B1%B9%E5%AE%89%E5%8D%93sstp-HZ%E7%89%88.apk"> <button type="button" class="btn btn-primary" style="width: 99%;margin-right:5px">猎豹IP-安卓sstp</button></a>
|
<a href="https://mp4.juip.com/%E7%8C%8E%E8%B1%B9%E5%AE%89%E5%8D%93sstp-HZ%E7%89%88.apk"> <button type="button" class="btn btn-primary" style="width: 99%;margin-right:5px">猎豹IP-安卓sstp</button></a>
|
||||||
|
|||||||
@@ -33,18 +33,18 @@ namespace Hncore.Infrastructure.WebApi
|
|||||||
context.Reject();
|
context.Reject();
|
||||||
}
|
}
|
||||||
|
|
||||||
var IP = context.HttpContext.Request.Headers["X-Real-IP"].ToString();
|
// var IP = context.HttpContext.Request.Headers["X-Real-IP"].ToString();
|
||||||
System.IO.StreamReader reader = new System.IO.StreamReader("/var/www/ip/ip");
|
// System.IO.StreamReader reader = new System.IO.StreamReader("/var/www/ip/ip");
|
||||||
string limitIp = reader.ReadLine();
|
// string limitIp = reader.ReadLine();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// //LogHelper.Error("ipaddresses", (!limitIp.Contains(IP)).ToString());
|
// //LogHelper.Error("ipaddresses", (!limitIp.Contains(IP)).ToString());
|
||||||
|
|
||||||
|
|
||||||
if ((!limitIp.Contains(IP)) && manager_user_info.OperaterId<100000) {
|
// if ((!limitIp.Contains(IP)) && manager_user_info.OperaterId<100000) {
|
||||||
context.Reject();
|
// context.Reject();
|
||||||
}
|
// }
|
||||||
|
|
||||||
context.SetPassed("ManageAuth");
|
context.SetPassed("ManageAuth");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user