Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7f83165e
authored
Oct 19, 2026
by
renyizhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.充值接口金额校验
2.API套餐次数被用作有效天数
parent
b67bf3a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
computility-module-apihub/computility-module-apihub-biz/src/main/java/com/luhu/computility/module/apihub/service/apiorder/ApiOrderServiceImpl.java
+1
-1
computility-module-member/src/main/java/com/luhu/computility/module/member/controller/admin/recharge/vo/MemberRechargeCreateReqVO.java
+10
-1
pom.xml
+3
-2
No files found.
computility-module-apihub/computility-module-apihub-biz/src/main/java/com/luhu/computility/module/apihub/service/apiorder/ApiOrderServiceImpl.java
View file @
7f83165e
...
...
@@ -475,7 +475,7 @@ public class ApiOrderServiceImpl implements ApiOrderService {
.
setUsedTimes
(
0
)
.
setPackageValidDays
(
order
.
getPackageValidDays
())
.
setUserId
(
order
.
getUserId
())
.
setExpireTime
(
DateUtil
.
offsetDay
(
new
Date
(),
order
.
getPackage
Time
s
()).
toLocalDateTime
())
.
setExpireTime
(
DateUtil
.
offsetDay
(
new
Date
(),
order
.
getPackage
ValidDay
s
()).
toLocalDateTime
())
.
setPackagePrice
(
order
.
getPackagePrice
())
);
});
...
...
computility-module-member/src/main/java/com/luhu/computility/module/member/controller/admin/recharge/vo/MemberRechargeCreateReqVO.java
View file @
7f83165e
...
...
@@ -4,6 +4,10 @@ import io.swagger.v3.oas.annotations.media.Schema;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.DecimalMax
;
import
javax.validation.constraints.DecimalMin
;
import
javax.validation.constraints.Digits
;
import
javax.validation.constraints.NotNull
;
import
java.math.BigDecimal
;
@Schema
(
description
=
"APP端 - 充值请求 VO"
)
...
...
@@ -12,6 +16,10 @@ import java.math.BigDecimal;
public
class
MemberRechargeCreateReqVO
{
@Schema
(
description
=
"充值金额(元)"
,
required
=
true
,
example
=
"100.00"
)
@NotNull
(
message
=
"充值金额不能为空"
)
@DecimalMin
(
value
=
"0.01"
,
message
=
"充值金额必须大于0.01元"
)
@DecimalMax
(
value
=
"1000000"
,
message
=
"充值金额不能超过100万元"
)
@Digits
(
integer
=
8
,
fraction
=
2
,
message
=
"充值金额整数部分最多8位,小数部分最多2位"
)
private
BigDecimal
amount
;
}
}
\ No newline at end of file
pom.xml
View file @
7f83165e
...
...
@@ -39,14 +39,14 @@
<properties>
<revision>
2.6.0-jdk8-SNAPSHOT
</revision>
<!-- Maven 相关 -->
<java.version>
1
.8
</java.version>
<java.version>
1
1
</java.version>
<maven.compiler.source>
${java.version}
</maven.compiler.source>
<maven.compiler.target>
${java.version}
</maven.compiler.target>
<maven-surefire-plugin.version>
3.2.2
</maven-surefire-plugin.version>
<maven-compiler-plugin.version>
3.14.0
</maven-compiler-plugin.version>
<flatten-maven-plugin.version>
1.6.0
</flatten-maven-plugin.version>
<!-- maven-surefire-plugin 暂时无法通过 bom 的依赖读取(兼容老版本 IDEA 2024 及以前版本) -->
<lombok.version>
1.18.3
0
</lombok.version>
<lombok.version>
1.18.3
4
</lombok.version>
<spring.boot.version>
2.7.18
</spring.boot.version>
<mapstruct.version>
1.6.3
</mapstruct.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
...
...
@@ -115,6 +115,7 @@
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
${spring.boot.version}
</version>
</plugin>
</plugins>
</pluginManagement>
...
...
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