From 9f09e749e7198051b9af6c2421336a80b58b79a4 Mon Sep 17 00:00:00 2001
From: 喻健 <喻健@Admin>
Date: 星期三, 19 十二月 2018 16:33:12 +0800
Subject: [PATCH] 当日提现成功超过100元 返回高危标识

---
 fanli/src/main/java/com/yeshi/fanli/util/taobao/TaoKeApiUtil.java |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/util/taobao/TaoKeApiUtil.java b/fanli/src/main/java/com/yeshi/fanli/util/taobao/TaoKeApiUtil.java
index 3f5cc91..036d8ae 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/taobao/TaoKeApiUtil.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/taobao/TaoKeApiUtil.java
@@ -1044,16 +1044,17 @@
 				return list;
 			JSONArray array = data.optJSONObject("tbk_item_recommend_get_response").optJSONObject("results")
 					.optJSONArray("n_tbk_item");
-			for (int i = 0; i < array.size(); i++) {
-				JSONObject item = array.optJSONObject(i);
-				TaoBaoGoodsBrief goods = new TaoBaoGoodsBrief();
-				goods.setAuctionId(item.optLong("num_iid"));
-				goods.setTitle(item.optString("title"));
-				goods.setZkPrice(new BigDecimal(item.optString("zk_final_price")));
-				goods.setAuctionUrl(item.optString("item_url"));
-				goods.setPictUrl(item.optString("pict_url"));
-				list.add(goods);
-			}
+			if (array != null)
+				for (int i = 0; i < array.size(); i++) {
+					JSONObject item = array.optJSONObject(i);
+					TaoBaoGoodsBrief goods = new TaoBaoGoodsBrief();
+					goods.setAuctionId(item.optLong("num_iid"));
+					goods.setTitle(item.optString("title"));
+					goods.setZkPrice(new BigDecimal(item.optString("zk_final_price")));
+					goods.setAuctionUrl(item.optString("item_url"));
+					goods.setPictUrl(item.optString("pict_url"));
+					list.add(goods);
+				}
 		}
 		return list;
 	}

--
Gitblit v1.8.0