ソースを参照

Merge branch 'master' of https://github.com/yuzhengyang/Fork

yuzhengyang 6 年 前
コミット
fc0844c8a7

+ 1 - 1
Azylee.Utils/Azylee.YeahWeb/Azylee.YeahWeb.csproj

@@ -53,7 +53,7 @@
     <Compile Include="BaiDuWebAPI\IPLocationAPI\IPLocationWebModel.cs" />
     <Compile Include="BaiDuWebAPI\IPLocationAPI\IPLocationWebModel.cs" />
     <Compile Include="BaiDuWebAPI\IPLocationAPI\IPLocationTool.cs" />
     <Compile Include="BaiDuWebAPI\IPLocationAPI\IPLocationTool.cs" />
     <Compile Include="EmailUtils\EmailTool.cs" />
     <Compile Include="EmailUtils\EmailTool.cs" />
-    <Compile Include="ExtWebAPI\BingWebAPI\WallpaperUtils\WallpaperModel.cs" />
+    <Compile Include="ExtWebAPI\BingWebAPI\WallpaperUtils\WallpaperWebModel.cs" />
     <Compile Include="ExtWebAPI\BingWebAPI\WallpaperUtils\WallpaperTool.cs" />
     <Compile Include="ExtWebAPI\BingWebAPI\WallpaperUtils\WallpaperTool.cs" />
     <Compile Include="FTPUtils\FTPTool.cs" />
     <Compile Include="FTPUtils\FTPTool.cs" />
     <Compile Include="HttpUtils\MethodUtils\ExtendUtils\HeaderTool.cs" />
     <Compile Include="HttpUtils\MethodUtils\ExtendUtils\HeaderTool.cs" />

+ 6 - 6
Azylee.Utils/Azylee.YeahWeb/ExtWebAPI/BingWebAPI/WallpaperUtils/WallpaperTool.cs

@@ -24,7 +24,7 @@ namespace Azylee.YeahWeb.ExtWebAPI.BingWebAPI.WallpaperUtils
         /// 获取今天的壁纸
         /// 获取今天的壁纸
         /// </summary>
         /// </summary>
         /// <returns></returns>
         /// <returns></returns>
-        public static WallpaperModel GetToday()
+        public static WallpaperWebModel GetToday()
         {
         {
             return GetSomeday(0);
             return GetSomeday(0);
         }
         }
@@ -32,7 +32,7 @@ namespace Azylee.YeahWeb.ExtWebAPI.BingWebAPI.WallpaperUtils
         /// 获取昨天的壁纸
         /// 获取昨天的壁纸
         /// </summary>
         /// </summary>
         /// <returns></returns>
         /// <returns></returns>
-        public static WallpaperModel GetYesterday()
+        public static WallpaperWebModel GetYesterday()
         {
         {
             return GetSomeday(1);
             return GetSomeday(1);
         }
         }
@@ -41,7 +41,7 @@ namespace Azylee.YeahWeb.ExtWebAPI.BingWebAPI.WallpaperUtils
             List<ImagesItem> result = new List<ImagesItem>();
             List<ImagesItem> result = new List<ImagesItem>();
             for (var i = 0; i < 10; i++)
             for (var i = 0; i < 10; i++)
             {
             {
-                WallpaperModel model = GetSomeday(i);
+                WallpaperWebModel model = GetSomeday(i);
                 if (model != null && Ls.Ok(model.images))
                 if (model != null && Ls.Ok(model.images))
                 {
                 {
                     foreach (var img in model.images)
                     foreach (var img in model.images)
@@ -60,13 +60,13 @@ namespace Azylee.YeahWeb.ExtWebAPI.BingWebAPI.WallpaperUtils
         /// </summary>
         /// </summary>
         /// <param name="day"></param>
         /// <param name="day"></param>
         /// <returns></returns>
         /// <returns></returns>
-        public static WallpaperModel GetSomeday(int day)
+        public static WallpaperWebModel GetSomeday(int day)
         {
         {
-            WallpaperModel model = null;
+            WallpaperWebModel model = null;
             try
             try
             {
             {
                 string rs = HttpTool.Get(string.Format(URL, day));
                 string rs = HttpTool.Get(string.Format(URL, day));
-                model = Json.String2Object<WallpaperModel>(rs);
+                model = Json.String2Object<WallpaperWebModel>(rs);
                 return model;
                 return model;
             }
             }
             catch (Exception e) { return null; }
             catch (Exception e) { return null; }

+ 1 - 1
Azylee.Utils/Azylee.YeahWeb/ExtWebAPI/BingWebAPI/WallpaperUtils/WallpaperModel.cs

@@ -6,7 +6,7 @@ using System.Text;
 
 
 namespace Azylee.YeahWeb.ExtWebAPI.BingWebAPI.WallpaperUtils
 namespace Azylee.YeahWeb.ExtWebAPI.BingWebAPI.WallpaperUtils
 {
 {
-    public class WallpaperModel
+    public class WallpaperWebModel
     {
     {
         /// <summary>
         /// <summary>
         /// 
         ///