修改驱动
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.0" />
|
||||
<PackageReference Include="MySqlConnector" Version="0.40.4" />
|
||||
<PackageReference Include="NewLife.XCode" Version="9.7.6703.38907" />
|
||||
<PackageReference Include="MySqlConnector" Version="0.42.0" />
|
||||
<PackageReference Include="NewLife.XCode" Version="9.7.6722.39741" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||
<PackageReference Include="Senparc.Weixin.MP" Version="14.14.0" />
|
||||
<PackageReference Include="Senparc.Weixin.WxOpen" Version="1.10.5" />
|
||||
|
||||
@@ -52,15 +52,13 @@ namespace COMCMS.Web.Controllers
|
||||
|
||||
public IActionResult Contact()
|
||||
{
|
||||
|
||||
ViewData["Message"] = "Your contact page.";
|
||||
string prekey = Utils.PrefixKey;
|
||||
Article a = Article.FindById(1);
|
||||
ViewBag.siteName = a.Title;
|
||||
string abc = HttpContext.Session.GetString("abc");
|
||||
ViewBag.c = CookiesHelper.GetCookie("abc")+ abc;
|
||||
ViewBag.d = prekey;
|
||||
return View();
|
||||
Link l = new Link();
|
||||
l.Title = "心😃💪 💪";
|
||||
l.Sequence = 0;
|
||||
l.IsHide = false;
|
||||
l.LinkURL = "http://www.baidu.com";
|
||||
l.Insert();
|
||||
return View(l);
|
||||
}
|
||||
|
||||
public IActionResult Error()
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
@{
|
||||
@model COMCMS.Core.Link
|
||||
@{
|
||||
ViewData["Title"] = "Contact";
|
||||
}
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<h3>@ViewData["Message"]</h3>
|
||||
<h2>@ViewBag.siteName</h2>
|
||||
<h2 style="color:#ff0000">@ViewBag.c</h2>
|
||||
<h2>@ViewBag.d.ToString()</h2>
|
||||
|
||||
<h2>@Model.Title</h2>
|
||||
<h2>@Model.Id</h2>
|
||||
<address>
|
||||
One Microsoft Way<br />
|
||||
Redmond, WA 98052-6399<br />
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<add key="SignSalt" value="mycomcms" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="dbconn" connectionString="Server=.;Port=3306;Database=comcmscore;Uid=root;Pwd=root;" providerName="MySql.Data.MySqlClient" />
|
||||
<!--<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>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
},
|
||||
"connectionStrings": {
|
||||
"dbconn": {
|
||||
"connectionString": "Server=.;Port=3306;Database=comcmscore;Uid=root;Pwd=root;",
|
||||
"connectionString": "Server=.;Port=3306;Database=comcms2;Uid=root;Pwd=root;",
|
||||
"providerName": "MySql.Data.MySqlClient"
|
||||
},
|
||||
"mssqlconnon": {
|
||||
|
||||
Reference in New Issue
Block a user