Parcourir la source

升级数据库

懒得勤快 il y a 5 ans
Parent
commit
37a7b6df4c

BIN
src/Masuit.MyBlogs.Core/App_Data/GeoLite2-ASN.mmdb


BIN
src/Masuit.MyBlogs.Core/App_Data/GeoLite2-City.mmdb


+ 1 - 1
src/Masuit.MyBlogs.Core/Controllers/CommentController.cs

@@ -114,7 +114,7 @@ namespace Masuit.MyBlogs.Core.Controllers
                     {
                         Title = $"来自【{comment.NickName}】的新文章评论",
                         Content = comment.Content,
-                        Link = Url.Action("Details", "Post", new { id = comment.PostId, cid = comment.Id }, Request.Scheme) + "#comment"
+                        Link = Url.Action("Details", "Post", new { id = comment.PostId, cid = comment.Id }) + "#comment"
                     });
                 }
                 if (comment.ParentId == 0)

+ 1 - 1
src/Masuit.MyBlogs.Core/Controllers/MsgController.cs

@@ -178,7 +178,7 @@ namespace Masuit.MyBlogs.Core.Controllers
                     {
                         Title = $"来自【{msg.NickName}】的新留言",
                         Content = msg.Content,
-                        Link = Url.Action("Index", "Msg", new { cid = msg.Id }, Request.Scheme)
+                        Link = Url.Action("Index", "Msg", new { cid = msg.Id })
                     });
                 }
                 if (msg.ParentId == 0)

+ 1 - 1
src/Masuit.MyBlogs.Core/Hubs/MyHub.cs

@@ -173,7 +173,7 @@ namespace Masuit.MyBlogs.Core.Hubs
         {
             double time = DateTime.Now.GetTotalMilliseconds(); // - 28800000;
             float load = SystemInfo.CpuLoad;
-            double mem = (1 - SystemInfo.MemoryAvailable.To<double>() / SystemInfo.PhysicalMemory.To<double>()) * 100;
+            double mem = (1 - SystemInfo.MemoryAvailable.ConvertTo<double>() / SystemInfo.PhysicalMemory.ConvertTo<double>()) * 100;
 
             var read = SystemInfo.GetDiskData(DiskData.Read) / 1024;
             var write = SystemInfo.GetDiskData(DiskData.Write) / 1024;

+ 2 - 2
src/Masuit.MyBlogs.Core/wwwroot/ng-views/views/post/writeblog.html

@@ -112,8 +112,8 @@
         </div>
         <div class="col-md-4">
             <div class="input-group">
-                <span class="input-group-addon" id="sizing-addon2">按地区投放:</span><select ng-model="post.LimitMode" ng-init="post.LimitMode = '0'" class="form-control">
-                    <option ng-value="0">不限</option>
+                <span class="input-group-addon" id="sizing-addon2">按地区投放:</span><select ng-model="post.LimitMode" ng-init="post.LimitMode = 0" class="form-control">
+                    <option ng-value="0" selected="selected">不限</option>
                     <option ng-value="1">指定地区可见</option>
                     <option ng-value="2">指定地区不可见</option>
                     <option ng-value="3">指定地区可见但排除在内的这些地区</option>