Commit 9d05033a authored by solho's avatar solho

feat:版本號時間改用LOG4NET 紀錄

parent 4d7ea374
......@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebAPI.Tool;
namespace WebAPI.Controllers
{
......@@ -16,7 +17,8 @@ namespace WebAPI.Controllers
DateTime buildDate = DateTime.Now
.AddDays(version.Build).AddSeconds(version.Revision * 2);
string displayableVersion = $"{version} ({buildDate})";
ViewBag.version = displayableVersion;
ViewBag.version = $"{version}";
LogHelper.WriteInfoLog("建置版本:" + displayableVersion);
return View();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment