Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
point-project
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
point-project
Commits
1018d275
Commit
1018d275
authored
Oct 28, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加积分商城相关代码
parent
fc2e4671
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
cloud-point/src/main/java/com/yizhi/application/controller/PointApiController.java
+3
-0
cloud-point/src/main/java/com/yizhi/application/service/impl/PointServiceImpl.java
+1
-1
No files found.
cloud-point/src/main/java/com/yizhi/application/controller/PointApiController.java
View file @
1018d275
...
...
@@ -15,6 +15,7 @@ import com.yizhi.point.application.vo.domain.PointVo;
import
com.yizhi.system.application.system.remote.AccountClient
;
import
com.yizhi.system.application.vo.AccountVO
;
import
io.swagger.annotations.Api
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -34,6 +35,7 @@ import java.util.List;
* @author bob123
* @since 2018-04-20
*/
@Slf4j
@Api
(
tags
=
"积分商城"
,
description
=
"积分商城"
)
@RestController
@RequestMapping
(
"/api/point"
)
...
...
@@ -76,6 +78,7 @@ public class PointApiController {
public
boolean
readFinished
(
@RequestParam
(
name
=
"accountId"
,
required
=
false
)
Long
accountId
,
@RequestParam
(
name
=
"infoId"
,
required
=
false
)
String
infoId
){
log
.
info
(
"阅读文章调用增加积分接口, accountId:{}, infoId:{}"
,
accountId
,
infoId
);
pointService
.
addPoint
(
accountId
,
"point_read"
,
infoId
);
return
true
;
}
...
...
cloud-point/src/main/java/com/yizhi/application/service/impl/PointServiceImpl.java
View file @
1018d275
...
...
@@ -97,7 +97,7 @@ public class PointServiceImpl extends ServiceImpl<PointMapper, Point> implements
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
addPoint
(
Long
accountId
,
String
type
,
String
sourceId
){
if
(
accountId
==
null
||
StringUtils
.
isBlank
(
type
)
||
StringUtils
.
isBlank
(
sourceId
)
){
if
(
accountId
==
null
||
StringUtils
.
isBlank
(
type
)){
log
.
error
(
"增加积分入参异常 accountId:{}, type:{}, sourceId:{}"
,
accountId
,
type
,
sourceId
);
return
;
}
...
...
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