初始化
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
|
||||
namespace BLV_API
|
||||
{
|
||||
public static class Tools
|
||||
{
|
||||
public static string GetApplicationPath()
|
||||
{
|
||||
return AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
|
||||
}
|
||||
public static string MD5Encrypt(string strEnc)
|
||||
{
|
||||
string result;
|
||||
try
|
||||
{
|
||||
MD5 md5Hasher = MD5.Create();
|
||||
byte[] data = md5Hasher.ComputeHash(Encoding.Default.GetBytes(strEnc));
|
||||
StringBuilder sBuilder = new StringBuilder();
|
||||
int num;
|
||||
for (int i = 0; i < data.Length; i = num + 1)
|
||||
{
|
||||
sBuilder.Append(data[i].ToString("x2"));
|
||||
num = i;
|
||||
}
|
||||
result = sBuilder.ToString();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw ex;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
2094
.svn/pristine/3c/3cfcda05e7cec193c2c48f185f8ae261614a0ea7.svn-base
Normal file
2094
.svn/pristine/3c/3cfcda05e7cec193c2c48f185f8ae261614a0ea7.svn-base
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,24 @@
|
||||
<div class="jumbotron">
|
||||
<h1>欢迎访问宝来威客控接口服务</h1>
|
||||
@*<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.</p>
|
||||
<p><a href="https://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>*@
|
||||
</div>
|
||||
@*<div class="row">
|
||||
<div class="col-md-4">
|
||||
<h2>Getting started</h2>
|
||||
<p>ASP.NET Web API is a framework that makes it easy to build HTTP services that reach
|
||||
a broad range of clients, including browsers and mobile devices. ASP.NET Web API
|
||||
is an ideal platform for building RESTful applications on the .NET Framework.</p>
|
||||
<p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301870">Learn more »</a></p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h2>Get more libraries</h2>
|
||||
<p>NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.</p>
|
||||
<p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301871">Learn more »</a></p>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h2>Web Hosting</h2>
|
||||
<p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p>
|
||||
<p><a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301872">Learn more »</a></p>
|
||||
</div>
|
||||
</div>*@
|
||||
Reference in New Issue
Block a user