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
af6a7a77
Commit
af6a7a77
authored
Apr 26, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
96c1e72e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
41 deletions
+45
-41
LoginController.cs
Edu.WebApi/Controllers/User/LoginController.cs
+44
-40
appsettings.json
Edu.WebApi/appsettings.json
+1
-1
No files found.
Edu.WebApi/Controllers/User/LoginController.cs
View file @
af6a7a77
...
@@ -198,46 +198,50 @@ namespace Edu.WebApi.Controllers.User
...
@@ -198,46 +198,50 @@ namespace Edu.WebApi.Controllers.User
uploadConfig
?.
UploadDomain
uploadConfig
?.
UploadDomain
};
};
}
}
//for (var i = 0; i < 10; i++)
if
(
Common
.
Config
.
IsOnline
)
//{
{
// Random rd = new Random();
for
(
var
i
=
0
;
i
<
10
;
i
++)
// int num = rd.Next(0, 1000);
{
// Common.Message.PushMessageModel model = new Common.Message.PushMessageModel()
Random
rd
=
new
Random
();
// {
int
num
=
rd
.
Next
(
0
,
1000
);
// CategoryId = 0,
Common
.
Message
.
PushMessageModel
model
=
new
Common
.
Message
.
PushMessageModel
()
// Content = "推送内容" + i.ToString(),
{
// CoverImg = "",
CategoryId
=
0
,
// CreateByName = userInfo.AccountName,
Content
=
DateTime
.
Now
.
ToString
(
"yyyyMMdd HH:mm:ss fff"
)
+
"推送内容"
+
i
.
ToString
(),
// JumpUrl = "",
CoverImg
=
""
,
// ReceiveId = "1",
CreateByName
=
userInfo
.
AccountName
,
// SendTime = DateTime.Now,
JumpUrl
=
""
,
// SendType = 0,
ReceiveId
=
"1"
,
// Title = "推送标题" + i.ToString(),
SendTime
=
DateTime
.
Now
,
// };
SendType
=
0
,
// //手机推送
Title
=
DateTime
.
Now
.
ToString
(
"yyyyMMdd HH:mm:ss fff"
)
+
"推送标题"
+
i
.
ToString
(),
// if (num % 4 == 1)
};
// {
//手机推送
// model.Platform = 1;
if
(
num
%
4
==
1
)
// }
{
// //Web推送
model
.
Platform
=
1
;
// else if (num % 4 == 2)
}
// {
//Web推送
// model.Platform = 2;
else
if
(
num
%
4
==
2
)
// }
{
// //短信推送
model
.
Platform
=
2
;
// else if (num % 4 == 3)
}
// {
//短信推送
// model.Platform = 3;
else
if
(
num
%
4
==
3
)
// model.ReceiveId = "13551126755";
{
// }
model
.
Platform
=
3
;
// //邮件推送
model
.
ReceiveId
=
"13551126755"
;
// else
}
// {
//邮件推送
// model.Platform = 4;
else
// model.ReceiveId = "1006186972@qq.com";
{
// }
model
.
Platform
=
4
;
// Common.Message.MessageHelper.SendMessage(model);
model
.
ReceiveId
=
"1006186972@qq.com"
;
//}
}
Common
.
Message
.
MessageHelper
.
SendMessage
(
model
);
}
}
return
ApiResult
.
Success
(
data
:
userInfo
);
return
ApiResult
.
Success
(
data
:
userInfo
);
}
}
else
else
...
...
Edu.WebApi/appsettings.json
View file @
af6a7a77
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
//未填写
未打分
下降比例
//未填写
未打分
下降比例
"OKRMatterValue"
:
"30,100,100"
,
"OKRMatterValue"
:
"30,100,100"
,
//是否是线上环境
//是否是线上环境
"IsOnline"
:
fals
e
,
"IsOnline"
:
tru
e
,
//退课流程编号
//退课流程编号
"BackClassFlowId"
:
1
,
"BackClassFlowId"
:
1
,
//分区校长岗位编号
//分区校长岗位编号
...
...
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