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 |   34 +++++++++++++++++++++++-----------
 1 files changed, 23 insertions(+), 11 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 7faf1ba..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
@@ -627,6 +627,12 @@
 		if (filter.getEndTkRate() > 0)
 			map.put("end_tk_rate", filter.getEndTkRate() + "");
 
+		if (filter.getStartKaTkRate() > 0)
+			map.put("start_ka_tk_rate", filter.getStartKaTkRate() + "");
+
+		if (filter.getEndKaTkRate() > 0)
+			map.put("end_ka_tk_rate", filter.getEndKaTkRate() + "");
+
 		if (filter.isTmall())
 			map.put("is_tmall", filter.isTmall() + "");
 
@@ -729,7 +735,7 @@
 
 		// 璁剧疆鍙戣揣鍦板潃
 		TaoBaoSearchNav nav = new TaoBaoSearchNav();
-		nav.setName("鍙戣揣鍦�");
+		nav.setName("鍙戣揣鍦伴�夋嫨");
 		nav.setFlag("address");
 		nav.setId(11110);
 		nav.setType("fahuodi");
@@ -953,6 +959,11 @@
 	 * @return
 	 */
 	public static String getTKToken(String logo, String text, String url) {
+		if (text == null)
+			return null;
+		if (text.length() < 5)
+			text = "濂借揣锛�" + text;
+
 		Map<String, String> map = new HashMap<>();
 		map.put("method", "taobao.tbk.tpwd.create");
 		map.put("url", url);
@@ -1033,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