Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
base_platform_enterprise
gic-platform-enterprise
Commits
1f188cd5
Commit
1f188cd5
authored
Jan 18, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码
parent
47d897b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
AppletCustomPageApiServiceImpl.java
...se/service/outer/impl/AppletCustomPageApiServiceImpl.java
+7
-0
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AppletCustomPageApiServiceImpl.java
View file @
1f188cd5
...
...
@@ -165,6 +165,13 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
for
(
int
i
=
0
,
length
=
component
.
size
();
i
<
length
;
i
++)
{
JSONObject
json
=
component
.
getJSONObject
(
i
);
String
code
=
json
.
getString
(
"key"
);
if
(
code
.
equals
(
AppletPageComponentEnum
.
MALL_GOODS
.
getCode
())){
int
goodsCount
=
json
.
getIntValue
(
"goodsCount"
);
int
size
=
json
.
getJSONArray
(
"goods"
).
size
();
if
(
size
>
goodsCount
){
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"商品数量超出限制!"
);
}
}
Integer
componentIndex
=
json
.
getInteger
(
"elementIndex"
);
if
(
AppletPageComponentEnum
.
isSaveToComponentTable
(
code
))
{
//组件key存储
...
...
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