This commit is contained in:
qianhao.xu
2024-09-23 09:35:41 +08:00
parent 926c4be7ec
commit a7f14f1e3e
3 changed files with 32 additions and 16 deletions

View File

@@ -2,6 +2,7 @@
using JinianNet.JNTemplate;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Net;
namespace Infrastructure
{
@@ -15,12 +16,28 @@ namespace Infrastructure
var url = AppSettings.GetConfig("urls");
Console.WriteLine(content);
Console.ForegroundColor = ConsoleColor.Blue;
//Console.WriteLine("🎉源码地址: https://gitee.com/izory/DOANAdminNetCore");
Console.WriteLine("📖官方文档http://www.izhaorui.cn");
Console.WriteLine("💰打赏作者http://www.izhaorui.cn/vip");
Console.WriteLine("📱移动端体验http://demo.izhaorui.cn/h5");
Console.WriteLine($"Swagger地址{url}/swagger/index.html");
Console.WriteLine($"初始化种子数据地址:{url}/common/InitSeedData");
Console.WriteLine("苏州道安自动化技术有限公司成立于2009年7月公司在苏州新加坡工业园区注册成立是一家专业从事于装配和测试的民营企业。");
// 获取本地主机名
string hostName = Dns.GetHostName();
// 获取本地主机的 IP 地址列表
IPAddress[] localIPs = Dns.GetHostAddresses(hostName);
// 设置控制台输出颜色为蓝色
Console.ForegroundColor = ConsoleColor.Blue;
// 打印本地主机的 IP 地址
Console.WriteLine($"Local IP addresses for {hostName}:");
foreach (IPAddress ip in localIPs)
{
Console.WriteLine(ip);
}
// 重置控制台输出颜色为默认颜色
Console.ResetColor();
}
}
}