Former-commit-id: 511b9af256b0b4363dc93e62ac64d9ec34c8ddd3
TangShanKaiPing
wanggang 6 years ago
parent 984f035e41
commit 5fd6388237

@ -82,7 +82,7 @@
@Html.Raw(cfg["copyright"].Replace("{now}", DateTime.Now.Year.ToString())) @Html.Raw(cfg["copyright"].Replace("{now}", DateTime.Now.Year.ToString()))
</div> </div>
<div class="pull-right hidden-xs"> <div class="pull-right hidden-xs">
<span>版本:@Html.Raw(cfg["version"]) 设备Id@DeviceAttribute.DeviceId </span> <span>版本:@Html.Raw(cfg["version"])</span><!--设备Id@DeviceAttribute.DeviceId-->
@if (User.Identity.IsAuthenticated) @if (User.Identity.IsAuthenticated)
{ {
<a href="@Url.Action("Index","Home",new { area="Admin" })">管理</a> <a href="@Url.Action("Index","Home",new { area="Admin" })">管理</a>

@ -13,7 +13,7 @@ namespace Infrastructure.Web
static DeviceAttribute() static DeviceAttribute()
{ {
DeviceId = Helper.Instance.GetCPUNumber(); DeviceId = $"{Helper.Instance.GetCPUNumber()}{Helper.Instance.GetMacAddress()}".Md5();
} }
public override void OnResultExecuting(ResultExecutingContext context) public override void OnResultExecuting(ResultExecutingContext context)

@ -8,6 +8,7 @@ namespace IdGen
private static void Main(string[] args) private static void Main(string[] args)
{ {
Console.WriteLine("物联网设备程序授权码生成工具:"); Console.WriteLine("物联网设备程序授权码生成工具:");
Console.WriteLine($"当前设备编号:{(Helper.Instance.GetCPUNumber() + Helper.Instance.GetMacAddress()).Md5()}");
var message = "请输入以空格分隔的设备编号、有效天数有效天数为0则不限制使用期限"; var message = "请输入以空格分隔的设备编号、有效天数有效天数为0则不限制使用期限";
Console.WriteLine(message); Console.WriteLine(message);
while (true) while (true)

@ -1,5 +1,5 @@
{ {
"version": "1.0.0-rc.1", "version": "1.0.0-rc.2",
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Warning", "Default": "Warning",

@ -1,5 +1,5 @@
{ {
"version": "1.0.0-rc.1", "version": "1.0.0-rc.2",
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Warning", "Default": "Warning",

@ -2,20 +2,9 @@
<ul class="sidebar-menu" data-widget="tree"> <ul class="sidebar-menu" data-widget="tree">
<li class="@GetClass("Home")"><a href="@Url.Action("Index","Home")"><i class="fa fa-circle-o"></i><span>首页</span></a></li> <li class="@GetClass("Home")"><a href="@Url.Action("Index","Home")"><i class="fa fa-circle-o"></i><span>首页</span></a></li>
<li class="@GetClass("Configuration")"><a href="@Url.Action("Index","Configuration")"><i class="fa fa-circle-o"></i><span>网站配置</span></a></li> <li class="@GetClass("Configuration")"><a href="@Url.Action("Index","Configuration")"><i class="fa fa-circle-o"></i><span>网站配置</span></a></li>
<li class="treeview @GetClass("User","Role","Permission")"> <li class="@GetClass("User")"><a href="@Url.Action("Index","User")"><i class="fa fa-circle-o"></i><span>用户管理</span></a></li>
<a href="javascript:;" class="dropdown-toggle"> <li class="@GetClass("Role")"><a href="@Url.Action("Index","Role")"><i class="fa fa-circle-o"></i><span>角色管理</span></a></li>
<i class="fa fa-list"></i> <li class="@GetClass("Permission")"><a href="@Url.Action("Index","Permission")"><i class="fa fa-circle-o"></i><span>权限管理</span></a></li>
<span>权限管理</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li class="@GetClass("User")"><a href="@Url.Action("Index","User")"><i class="fa fa-circle-o"></i><span>用户管理</span></a></li>
<li class="@GetClass("Role")"><a href="@Url.Action("Index","Role")"><i class="fa fa-circle-o"></i><span>角色管理</span></a></li>
<li class="@GetClass("Permission")"><a href="@Url.Action("Index","Permission")"><i class="fa fa-circle-o"></i><span>权限管理</span></a></li>
</ul>
</li>
<li class="@GetClass("Site")"><a href="@Url.Action("Index","Site")"><i class="fa fa-circle-o"></i><span>应用管理</span></a></li> <li class="@GetClass("Site")"><a href="@Url.Action("Index","Site")"><i class="fa fa-circle-o"></i><span>应用管理</span></a></li>
</ul> </ul>
</section> </section>

@ -1,5 +1,5 @@
{ {
"version": "1.0.0-rc.1", "version": "1.0.0-rc.2",
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"Default": "Warning" "Default": "Warning"

@ -5,10 +5,10 @@ rd /q/s "./dist/"
echo d|xcopy "./src" "./dist/" /s /e /y /f echo d|xcopy "./src" "./dist/" /s /e /y /f
dotnet publish ../projects/UserCenter/UserCenter.csproj -c Release -r linux-x64 -o ../publish/dist/linux-x64/publish/apps/UserCenter dotnet publish ../projects/UserCenter/UserCenter.csproj -c Release -r linux-x64 -o ../../publish/dist/linux-x64/publish/apps/UserCenter
dotnet publish ../projects/IoTCenter/IoTCenter.csproj -c Release -r linux-x64 -o ../publish/dist/linux-x64/publish/apps/IoTCenter dotnet publish ../projects/IoTCenter/IoTCenter.csproj -c Release -r linux-x64 -o ../../publish/dist/linux-x64/publish/apps/IoTCenter
dotnet publish ../projects/IoT/IoTNode/IoTNode.csproj -c Release -o ../publish/dist/linux-arm64/publish/apps/IoTNode dotnet publish ../projects/IoT/IoTNode/IoTNode.csproj -c Release -o ../../../publish/dist/linux-arm64/publish/apps/IoTNode
::dotnet publish ../projects/IoT/IoTServices/WinService/WinService.csproj -c Release -r win-x86 -o "../../publish/dist/win-x86/Program Files (x86)/WinService" ::dotnet publish ../projects/IoT/IoTServices/WinService/WinService.csproj -c Release -r win-x86 -o "../../publish/dist/win-x86/Program Files (x86)/WinService"
::dotnet publish ../projects/IoT/IoTServices/APService/APService.csproj -c Release -o ../../publish/dist/linux-arm64/publish/apps/APService ::dotnet publish ../projects/IoT/IoTServices/APService/APService.csproj -c Release -o ../../publish/dist/linux-arm64/publish/apps/APService
::dotnet publish ../projects/IoT/IoTServices/FBeeService/FBeeService.csproj -c Release -r linux-arm64 -o ../publish/dist/linux-arm64/publish/apps/FBeeService ::dotnet publish ../projects/IoT/IoTServices/FBeeService/FBeeService.csproj -c Release -r linux-arm64 -o ../publish/dist/linux-arm64/publish/apps/FBeeService

Loading…
Cancel
Save