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
3847a8af
Commit
3847a8af
authored
Jan 26, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ddd6e110
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ConvertHelper.cs
Edu.Common/Plugin/ConvertHelper.cs
+1
-0
UserCenterController.cs
Edu.WebApi/Controllers/User/UserCenterController.cs
+3
-2
No files found.
Edu.Common/Plugin/ConvertHelper.cs
View file @
3847a8af
...
@@ -43,6 +43,7 @@ namespace Edu.Common
...
@@ -43,6 +43,7 @@ namespace Edu.Common
/// <summary>
/// <summary>
/// 获取时间格式
/// 获取时间格式
/// [HH:mm]
/// </summary>
/// </summary>
/// <param name="time"></param>
/// <param name="time"></param>
/// <returns></returns>
/// <returns></returns>
...
...
Edu.WebApi/Controllers/User/UserCenterController.cs
View file @
3847a8af
...
@@ -369,7 +369,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -369,7 +369,7 @@ namespace Edu.WebApi.Controllers.User
{
{
var
path
=
$"/administration/documentApproval"
;
var
path
=
$"/administration/documentApproval"
;
path
=
HttpUtility
.
UrlEncode
(
path
);
path
=
HttpUtility
.
UrlEncode
(
path
);
string
markdownContent
=
$"##### 你有新的待审批公告 \n>**概要信息** \n>公告标题:
{
demodel
.
Title
}
</font>\n>发 布 人:
{
userInfo
.
AccountName
}
\n>提审时间:<font color='comment'>
{
DateTime
.
Now
.
ToString
(
"MM-dd HH:mm"
)}
</font>\n>\n>接收对象:<font color='info'>
{(
demodel
.
To
==
"-1"
?
"全公司"
:
"指定部门"
)}
</font>\n>请 点 击:[立即审批](
{
Config
.
ErpUrl
}
/autologin?loginId=
{
modelShenhe
.
Content
}
&target=
{
path
}
#target=out)"
;
string
markdownContent
=
$"##### 你有新的待审批公告 \n>**概要信息** \n>公告标题:
{
demodel
.
Title
}
</font>\n>发 布 人:
{
userInfo
.
AccountName
}
\n>提审时间:<font color='comment'>
{
Common
.
ConvertHelper
.
FormatTimeStr2
(
DateTime
.
Now
)}
</font>\n>\n>接收对象:<font color='info'>
{(
demodel
.
To
==
"-1"
?
"全公司"
:
"指定部门"
)}
</font>\n>请 点 击:[立即审批](
{
Config
.
ErpUrl
}
/autologin?loginId=
{
modelShenhe
.
Content
}
&target=
{
path
}
#target=out)"
;
Common
.
Message
.
PushMessageModel
modelWork
=
new
Common
.
Message
.
PushMessageModel
()
Common
.
Message
.
PushMessageModel
modelWork
=
new
Common
.
Message
.
PushMessageModel
()
{
{
CategoryId
=
PushMessageCategoryEnum
.
NoticeAuditTips
,
CategoryId
=
PushMessageCategoryEnum
.
NoticeAuditTips
,
...
@@ -503,7 +503,8 @@ namespace Edu.WebApi.Controllers.User
...
@@ -503,7 +503,8 @@ namespace Edu.WebApi.Controllers.User
path
=
$"/administration/document"
;
path
=
$"/administration/document"
;
}
}
path
=
HttpUtility
.
UrlEncode
(
path
);
path
=
HttpUtility
.
UrlEncode
(
path
);
string
markdownContent
=
$"<font color='
{(
ReviewStatus
==
2
?
"warning"
:
"info"
)}
'>`审批
{(
ReviewStatus
==
1
?
"通过"
:
"驳回"
)}
`</font> 公告审批结果\n\n>**概要信息** \n>公告标题:
{
noticeModel
.
Title
}
\n>审 核 人:
{
userInfo
.
AccountName
}
\n>审核时间:<font color='comment'>
{
DateTime
.
Now
.
ToString
(
"MM-dd HH:mm"
)}
</font>\n>\n>请 点 击:[查看详情](
{
Config
.
ErpUrl
}
/autologin?loginId=
{
noticeModel
.
CreateBy
}
&target=
{
path
}
#target=out)"
;
string
markdownContent
=
$"<font color='
{(
ReviewStatus
==
2
?
"warning"
:
"info"
)}
'>`审批
{(
ReviewStatus
==
1
?
"通过"
:
"驳回"
)}
`</font> 公告审批结果\n\n>**概要信息** \n>公告标题:
{
noticeModel
.
Title
}
\n>审 核 人:
{
userInfo
.
AccountName
}
\n>审核时间:<font color='comment'>
{
Common
.
ConvertHelper
.
FormatTimeStr2
(
DateTime
.
Now
)}
</font>\n>\n>请 点 击:[查看详情](
{
Config
.
ErpUrl
}
/autologin?loginId=
{
noticeModel
.
CreateBy
}
&target=
{
path
}
#target=out)"
;
Common
.
Message
.
PushMessageModel
modelWork
=
new
Common
.
Message
.
PushMessageModel
()
Common
.
Message
.
PushMessageModel
modelWork
=
new
Common
.
Message
.
PushMessageModel
()
{
{
CategoryId
=
PushMessageCategoryEnum
.
NoticeAuditResult
,
CategoryId
=
PushMessageCategoryEnum
.
NoticeAuditResult
,
...
...
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