Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
2c7799e2
Commit
2c7799e2
authored
Nov 25, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签到分享3
parent
bc3ef257
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserSigninServiceImpl.java
.../main/java/com/wwdz/ch/wx/impl/UserSigninServiceImpl.java
+5
-2
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserSigninServiceImpl.java
View file @
2c7799e2
...
@@ -29,6 +29,7 @@ import org.springframework.stereotype.Service;
...
@@ -29,6 +29,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.time.DayOfWeek
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.format.DateTimeFormatter
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.*
;
...
@@ -330,10 +331,12 @@ public class UserSigninServiceImpl implements UserSigninService {
...
@@ -330,10 +331,12 @@ public class UserSigninServiceImpl implements UserSigninService {
map
.
put
(
"userName"
,
user
.
getNickname
());
map
.
put
(
"userName"
,
user
.
getNickname
());
map
.
put
(
"avatar"
,
user
.
getAvatar
());
map
.
put
(
"avatar"
,
user
.
getAvatar
());
LocalDate
today
=
LocalDate
.
now
();
LocalDate
today
=
LocalDate
.
now
();
map
.
put
(
"year"
,
today
.
getYear
()
+
"年"
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy/MM/dd"
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"MM月dd日"
);
String
formattedDate
=
today
.
format
(
formatter
);
String
formattedDate
=
today
.
format
(
formatter
);
map
.
put
(
"date"
,
formattedDate
);
map
.
put
(
"date"
,
formattedDate
);
DayOfWeek
dayOfWeek
=
today
.
getDayOfWeek
();
String
weekDay
=
dayOfWeek
.
getDisplayName
(
java
.
time
.
format
.
TextStyle
.
FULL
,
java
.
util
.
Locale
.
CHINESE
);
map
.
put
(
"weekDay"
,
weekDay
);
return
Result
.
success
(
map
);
return
Result
.
success
(
map
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"获取分享信息失败 error : {}"
,
e
);
logger
.
error
(
"获取分享信息失败 error : {}"
,
e
);
...
...
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