Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
96c1e72e
Commit
96c1e72e
authored
Apr 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b644f86a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
48 deletions
+48
-48
appsettings.json
Edu.EducationCore/appsettings.json
+4
-4
LoginController.cs
Edu.WebApi/Controllers/User/LoginController.cs
+40
-40
Startup.cs
Edu.WebApi/Startup.cs
+1
-1
appsettings.json
Edu.WebApi/appsettings.json
+3
-3
No files found.
Edu.EducationCore/appsettings.json
View file @
96c1e72e
{
{
"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"
,
...
...
Edu.WebApi/Controllers/User/LoginController.cs
View file @
96c1e72e
...
@@ -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
...
...
Edu.WebApi/Startup.cs
View file @
96c1e72e
...
@@ -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"
,
...
...
Edu.WebApi/appsettings.json
View file @
96c1e72e
{
{
"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"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment