From 4e557c1b42a6952c0c7e1deb8faa89a5d54b11d1 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 29 十二月 2018 14:49:20 +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