From b235dc9f05d63c8e6a783b37af59e33537b4df3b Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期五, 01 三月 2019 18:28:21 +0800 Subject: [PATCH] 福利免单券 激活跳转邀请有奖 --- fanli/src/main/java/com/yeshi/fanli/controller/client/SearchController.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/SearchController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/SearchController.java index 902613e..30bae77 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/SearchController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/SearchController.java @@ -480,7 +480,8 @@ } Gson gson = new GsonBuilder().create(); - data.put("words", gson.toJson(listRecommendWords)); + if (data != null) + data.put("words", gson.toJson(listRecommendWords)); out.print(JsonUtil.loadTrueResult(data)); } -- Gitblit v1.8.0