Commit 1f188cd5 by 陶光胜

二维码

parent 47d897b0
......@@ -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存储
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment