Commit 96c1e72e authored by 黄奎's avatar 黄奎

页面修改

parent b644f86a
{ {
"ConnectionStrings": { "ConnectionStrings": {
//"DefaultConnection": "server=192.168.1.214;user id=reborn;password=Reborn@2018;database=reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; ", //"DefaultConnection": "server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; ",
//"DefaultConnectionPName": "MySql.Data.MySqlClient", //"DefaultConnectionPName": "MySql.Data.MySqlClient",
//"FinanceConnection": "server=192.168.1.214;user id=reborn;password=Reborn@2018;database=test_reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; ", //"FinanceConnection": "server=192.168.20.214;user id=reborn;password=Reborn@2018;database=test_reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; ",
//"FinanceConnectionPName": "MySql.Data.MySqlClient", //"FinanceConnectionPName": "MySql.Data.MySqlClient",
//"DataStatisticsConnection": "server=192.168.1.214;user id=reborn;password=Reborn@2018;database=reborn_datastatistics;CharSet=utf8mb4; Convert Zero Datetime=true; ", //"DataStatisticsConnection": "server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_datastatistics;CharSet=utf8mb4; Convert Zero Datetime=true; ",
//"DataStatisticsConnectionPName": "MySql.Data.MySqlClient" //"DataStatisticsConnectionPName": "MySql.Data.MySqlClient"
"DefaultConnection": "server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;user id=reborn;password=Reborn@2018;database=uat_reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; ", "DefaultConnection": "server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;user id=reborn;password=Reborn@2018;database=uat_reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; ",
"DefaultConnectionPName": "MySql.Data.MySqlClient", "DefaultConnectionPName": "MySql.Data.MySqlClient",
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
"IsSendMsg": 2, "IsSendMsg": 2,
"AllowedHosts": "*", "AllowedHosts": "*",
"OpenValidation": "False", "OpenValidation": "False",
"UploadSiteUrl": "http://192.168.1.214:8120", "UploadSiteUrl": "http://192.168.20.214:8120",
"ViewFileSiteUrl": "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com", "ViewFileSiteUrl": "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com",
"ErpViewFileSiteUrl": "http://imgfile.oytour.com", "ErpViewFileSiteUrl": "http://imgfile.oytour.com",
"Mongo": "mongodb://47.96.25.130:27017", "Mongo": "mongodb://47.96.25.130:27017",
......
...@@ -198,46 +198,46 @@ namespace Edu.WebApi.Controllers.User ...@@ -198,46 +198,46 @@ namespace Edu.WebApi.Controllers.User
uploadConfig?.UploadDomain uploadConfig?.UploadDomain
}; };
} }
for (var i = 0; i < 10; i++) //for (var i = 0; i < 10; i++)
{ //{
Random rd = new Random(); // Random rd = new Random();
int num = rd.Next(0, 1000); // int num = rd.Next(0, 1000);
Common.Message.PushMessageModel model = new Common.Message.PushMessageModel() // Common.Message.PushMessageModel model = new Common.Message.PushMessageModel()
{ // {
CategoryId = 0, // CategoryId = 0,
Content = "推送内容" + i.ToString(), // Content = "推送内容" + i.ToString(),
CoverImg = "", // CoverImg = "",
CreateByName = userInfo.AccountName, // CreateByName = userInfo.AccountName,
JumpUrl = "", // JumpUrl = "",
ReceiveId = "1", // ReceiveId = "1",
SendTime = DateTime.Now, // SendTime = DateTime.Now,
SendType = 0, // SendType = 0,
Title = "推送标题" + i.ToString(), // Title = "推送标题" + i.ToString(),
}; // };
//手机推送 // //手机推送
if (num % 4 == 1) // if (num % 4 == 1)
{ // {
model.Platform = 1; // model.Platform = 1;
} // }
//Web推送 // //Web推送
else if (num % 4 == 2) // else if (num % 4 == 2)
{ // {
model.Platform = 2; // model.Platform = 2;
} // }
//短信推送 // //短信推送
else if (num % 4 == 3) // else if (num % 4 == 3)
{ // {
model.Platform = 3; // model.Platform = 3;
model.ReceiveId = "13551126755"; // model.ReceiveId = "13551126755";
} // }
//邮件推送 // //邮件推送
else // else
{ // {
model.Platform = 4; // model.Platform = 4;
model.ReceiveId = "1006186972@qq.com"; // model.ReceiveId = "1006186972@qq.com";
} // }
Common.Message.MessageHelper.SendMessage(model); // Common.Message.MessageHelper.SendMessage(model);
} //}
return ApiResult.Success(data: userInfo); return ApiResult.Success(data: userInfo);
} }
else else
......
...@@ -36,7 +36,7 @@ namespace Edu.WebApi ...@@ -36,7 +36,7 @@ namespace Edu.WebApi
}); });
List<string> corsArray = new List<string>() List<string> corsArray = new List<string>()
{ {
"http://192.168.1.214:8400", "http://192.168.20.214:8400",
"http://localhost:8400", "http://localhost:8400",
"http://localhost:8081", "http://localhost:8081",
"http://localhost:8080", "http://localhost:8080",
......
{ {
"ConnectionStrings": { "ConnectionStrings": {
"DefaultConnection": "server=192.168.1.214;user id=reborn;password=Reborn@2018;database=reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; ", "DefaultConnection": "server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; ",
"DefaultConnectionPName": "MySql.Data.MySqlClient", "DefaultConnectionPName": "MySql.Data.MySqlClient",
"FinanceConnection": "server=192.168.1.214;user id=reborn;password=Reborn@2018;database=test_reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; ", "FinanceConnection": "server=192.168.20.214;user id=reborn;password=Reborn@2018;database=test_reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; ",
"FinanceConnectionPName": "MySql.Data.MySqlClient", "FinanceConnectionPName": "MySql.Data.MySqlClient",
"DataStatisticsConnection": "server=192.168.1.214;user id=reborn;password=Reborn@2018;database=reborn_datastatistics;CharSet=utf8mb4; Convert Zero Datetime=true; ", "DataStatisticsConnection": "server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_datastatistics;CharSet=utf8mb4; Convert Zero Datetime=true; ",
"DataStatisticsConnectionPName": "MySql.Data.MySqlClient" "DataStatisticsConnectionPName": "MySql.Data.MySqlClient"
}, },
"Logging": { "Logging": {
......
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