更新对mssql支持
This commit is contained in:
@@ -673,7 +673,9 @@ namespace COMCMS.Common
|
||||
/// <returns></returns>
|
||||
public static DateTime StampToDateTime(string timeStamp)
|
||||
{
|
||||
DateTime dateTimeStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
|
||||
//TimeZoneInfo.ConvertTimeFromUtc()
|
||||
|
||||
DateTime dateTimeStart = TimeZoneInfo.ConvertTime(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc), TimeZoneInfo.Local);
|
||||
long lTime = long.Parse(timeStamp + "0000");
|
||||
TimeSpan toNow = new TimeSpan(lTime);
|
||||
return dateTimeStart.Add(toNow);
|
||||
|
||||
@@ -184,6 +184,10 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
|
||||
#endregion
|
||||
|
||||
#region 文章
|
||||
/// <summary>
|
||||
/// 文章栏目管理
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[MyAuthorize("viewlist", "article")]
|
||||
public IActionResult ArticleList()
|
||||
{
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
|
||||
{
|
||||
string callback = Request.Query["CKEditorFuncNum"];//要求返回值
|
||||
var upload = Request.Form.Files[0];
|
||||
string tpl = "<script type=\"text/javascript\">window.parent.CKEDITOR.tools.callFunction(\"{1}\", \"{0}\", \"{2}\");</script>";
|
||||
//string tpl = "<script type=\"text/javascript\">window.parent.CKEDITOR.tools.callFunction(\"{1}\", \"{0}\", \"{2}\");</script>";
|
||||
CKFileUploadError errorJson = new CKFileUploadError();
|
||||
if (upload == null)
|
||||
{
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">昵称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="Nickname" name="Nickname" maxlength="20" type="text" class="form-control" value="@Model.Nickname" aria-required="true" placeholder="昵称" readonly>
|
||||
<input id="Nickname" name="Nickname" maxlength="200" type="text" class="form-control" value="@Model.Nickname" aria-required="true" placeholder="昵称" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group hidden">
|
||||
|
||||
@@ -81,6 +81,19 @@
|
||||
radioClass: 'iradio_square-green',
|
||||
});
|
||||
})
|
||||
$("input").each(function (index, item) {
|
||||
if ($(this).attr("placeholder") && $(this).attr("placeholder") != "") {
|
||||
var tipstr = $(this).attr("placeholder");
|
||||
var id = $(this).attr("id");
|
||||
$(this).on("focusin", function () {
|
||||
layer.tips(tipstr, '#' + id, {
|
||||
tips: [1, '#3595CC'] //还可配置颜色
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||
<PackageReference Include="Senparc.Weixin.MP" Version="14.12.3" />
|
||||
<PackageReference Include="Senparc.Weixin.WxOpen" Version="1.9.1" />
|
||||
<PackageReference Include="System.Data.SqlClient" Version="4.4.3" />
|
||||
<PackageReference Include="ZKWeb.System.Drawing" Version="4.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -6,5 +6,7 @@
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="dbconn" connectionString="Server=.;Port=3306;Database=comcmscore;Uid=root;Pwd=root;" providerName="MySql.Data.MySqlClient" />
|
||||
<!--<add name="dbconn" connectionString="server=(local);database=comcmscore;uid=sa;pwd=123456" providerName="System.Data.SqlClient" />-->
|
||||
<!--<add name="dbconn" connectionString="Data Source=~/App_Data/ratuodb.db" providerName="Sqlite" />-->
|
||||
</connectionStrings>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user