Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
WeiPanAPI
Overview
Overview
Details
Activity
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
Discuz
WeiPanAPI
Commits
efa731ed
Commit
efa731ed
authored
Mar 03, 2021
by
xiongyuwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
8ac78970
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
WeiPanService.cs
src/Bailun.Discuz.Application/WeiPan/WeiPanService.cs
+15
-0
No files found.
src/Bailun.Discuz.Application/WeiPan/WeiPanService.cs
View file @
efa731ed
...
...
@@ -1152,6 +1152,9 @@ namespace Bailun.Discuz.Application.WeiPan
{
foreach
(
var
item
in
resultNotifications
.
data
)
{
item
.
attributes
.
created_at
=
ConventDateTime
(
item
.
attributes
.
created_at
);
item
.
attributes
.
post_created_at
=
ConventDateTime
(
item
.
attributes
.
post_created_at
);
item
.
attributes
.
thread_created_at
=
ConventDateTime
(
item
.
attributes
.
thread_created_at
);
item
.
attributes
.
noticetype
=
GetNoticeType
(
item
.
attributes
.
type
);
item
.
attributes
.
noticeurl
=
await
GetNoticeUrlByThreadId
(
item
.
attributes
.
thread_id
,
wxUserId
);
}
...
...
@@ -1159,6 +1162,18 @@ namespace Bailun.Discuz.Application.WeiPan
return
resultNotifications
;
}
public
string
ConventDateTime
(
string
dateTime
)
{
if
(!
dateTime
.
IsNullOrEmpty
())
{
return
Convert
.
ToDateTime
(
dateTime
.
Substring
(
0
,
dateTime
.
IndexOf
(
' '
)).
Replace
(
"T"
,
" "
)).
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
}
else
{
return
dateTime
;
}
}
/// <summary>
/// 字符串转Unicode
/// </summary>
...
...
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