From c31b9a70e3787b47bccc15e40abf0710478fbb3a Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@Admin> Date: 星期三, 19 十二月 2018 17:09:51 +0800 Subject: [PATCH] 动态分享添加返回返利金额 --- fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java b/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java index 7369132..57915fb 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java @@ -254,10 +254,12 @@ } } else { TaoBaoGoodsBriefExtra taoBaoGoodsBriefExtra; - for (TaoBaoGoodsBrief taoBaoGoodsBrief : taoBaoGoodsBriefs) { - taoBaoGoodsBriefExtra = TaoBaoUtil.getTaoBaoGoodsBriefExtra(taoBaoGoodsBrief, proportion.toString(), ""); - re.add(taoBaoGoodsBriefExtra); - } + if (taoBaoGoodsBriefs != null) + for (TaoBaoGoodsBrief taoBaoGoodsBrief : taoBaoGoodsBriefs) { + taoBaoGoodsBriefExtra = TaoBaoUtil.getTaoBaoGoodsBriefExtra(taoBaoGoodsBrief, proportion.toString(), + ""); + re.add(taoBaoGoodsBriefExtra); + } } Gson gson2 = JsonUtil.getApiCommonGson(); data.put("result", gson2.toJson(re)); -- Gitblit v1.8.0