From 418678a2f6eeeb9de97795a26277d7c5c64c282d Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期四, 23 五月 2019 15:13:03 +0800
Subject: [PATCH] 用户头像压缩200x200

---
 fanli/src/main/java/com/yeshi/fanli/util/taobao/TaoKeApiUtil.java |   52 +++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 49 insertions(+), 3 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 60c68ba..56f444e 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
@@ -27,6 +27,7 @@
 import com.yeshi.fanli.tag.PageEntity;
 import com.yeshi.fanli.util.MoneyBigDecimalUtil;
 import com.yeshi.fanli.util.StringUtil;
+import com.yeshi.fanli.util.TaoBaoConstant;
 import com.yeshi.fanli.util.TimeUtil;
 
 import net.sf.json.JSONArray;
@@ -1761,17 +1762,46 @@
 	public static void taoKeContent() {
 		Map<String, String> map = new HashMap<>();
 		map.put("method", "taobao.tbk.content.get");
+		map.put("adzone_id",TaoBaoConstant.TAOBAO_SPECIAL_PID_DEFAULT.split("_")[3]);
+		map.put("type", "1");
+		map.put("count", "100");
+		
 		TaoKeAppInfo app = new TaoKeAppInfo();
-		app.setAppKey("24838852");
-		app.setAppSecret("bc8265e2bf8d8115329d652f9d3d4cd8");
+		app.setAppKey(TaoBaoConstant.TAOBAO_AUTH_APPKEY);
+		app.setAppSecret(TaoBaoConstant.TAOBAO_AUTH_APPSECRET);
 		try {
 			JSONObject json = TaoKeBaseUtil.baseRequest(map,app);
 			System.out.println(json);
 		} catch (TaoKeApiException e) {
 			e.printStackTrace();
 		}
-
 	}
+	
+	
+	public static void taoKeContentSource(String contentId,String source) {
+		Map<String, String> map = new HashMap<>();
+		map.put("method", "taobao.tbk.dg.optimus.material");
+		map.put("adzone_id",TaoBaoConstant.TAOBAO_SPECIAL_PID_DEFAULT.split("_")[3]);
+		map.put("page_size", "10");
+		map.put("page_no", "1");
+		map.put("content_id",contentId);
+		map.put("content_source", source);
+		map.put("material_id", "1");
+		
+		
+		TaoKeAppInfo app = new TaoKeAppInfo();
+		app.setAppKey(TaoBaoConstant.TAOBAO_AUTH_APPKEY);
+		app.setAppSecret(TaoBaoConstant.TAOBAO_AUTH_APPSECRET);
+		try {
+			JSONObject json = TaoKeBaseUtil.baseRequest(map,app);
+			System.out.println(json);
+		} catch (TaoKeApiException e) {
+			e.printStackTrace();
+		}
+	}
+	
+	
+	
 
 	// AA5ISJ
 
@@ -1866,6 +1896,22 @@
 		goods.setPictUrlWhite(item.optString("white_image"));
 		return goods;
 	}
+	
+	public static void getShopGoodsList(Long shopId)
+	{
+		Map<String, String> map = new HashMap<>();
+		map.put("method", "tmall.omni.pc.iteminfo.getbyshopid");
+		map.put("shop_id",shopId+"");
+		TaoKeAppInfo app = new TaoKeAppInfo();
+		app.setAppKey("24838852");
+		app.setAppSecret("bc8265e2bf8d8115329d652f9d3d4cd8");
+		try {
+			JSONObject json = TaoKeBaseUtil.baseRequest(map,app);
+			System.out.println(json);
+		} catch (TaoKeApiException e) {
+			e.printStackTrace();
+		}
+	}
 
 }
 

--
Gitblit v1.8.0