zuohuaijun 2 лет назад
Родитель
Сommit
7a33ca97c1

+ 1 - 1
Admin.NET/Admin.NET.Core/Service/File/Dto/FileInput.cs

@@ -56,4 +56,4 @@ public class UploadFileFromBase64Input
     /// 保存路径
     /// </summary>
     public string Path { get; set; }
-}
+}

+ 0 - 1
Admin.NET/Admin.NET.Core/Service/File/SysFileService.cs

@@ -10,7 +10,6 @@
 using Aliyun.OSS.Util;
 using Furion.VirtualFileServer;
 using OnceMi.AspNetCore.OSS;
-using static SKIT.FlurlHttpClient.Wechat.Api.Models.CgibinTagsMembersGetBlackListResponse.Types;
 
 namespace Admin.NET.Core.Service;
 

+ 1 - 1
Admin.NET/Admin.NET.Core/Util/ComputerUtil.cs

@@ -95,7 +95,7 @@ public static class ComputerUtil
         var stream = url.GetAsStreamAsync().GetAwaiter().GetResult();
         var streamReader = new StreamReader(stream.Stream, stream.Encoding);
         var html = streamReader.ReadToEnd();
-        return html.Replace("当前 IP:", "").Replace("来自于:", "");
+        return !html.Contains("当前 IP:") ? "未知" : html.Replace("当前 IP:", "").Replace("来自于:", "");
     }
 
     public static bool IsUnix()

+ 1 - 0
Web/src/types/global.d.ts

@@ -31,6 +31,7 @@ declare interface Window {
 	nextLoading: boolean;
 	BMAP_SATELLITE_MAP: any;
 	BMap: any;
+	__env__: any;
 }
 
 // 声明路由当前项类型