From 531d93708df8017e59830f15b41f3cc42d6126e6 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 09 七月 2019 17:53:01 +0800
Subject: [PATCH] 1.5.7版本需求

---
 fanli/src/main/java/com/yeshi/fanli/util/taobao/TaoKeApiUtil.java |   13 +++++--------
 1 files changed, 5 insertions(+), 8 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 af16c43..01f5d1a 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
@@ -1392,7 +1392,7 @@
 		map.put("page_no", page + "");
 		map.put("page_size", pageSize + "");
 		map.put("material_id", materialId + "");
-		map.put("content_id", "561388751621");
+//		map.put("content_id", "561388751621");
 
 		String resultStr = TaoKeBaseUtil.baseRequestForThreeTimes(map, true);
 		System.out.println(resultStr);
@@ -1663,7 +1663,7 @@
 					.optString("relation_id");
 		} catch (TaoKeApiException e) {
 			e.printStackTrace();
-			LogHelper.error("娓犻亾ID鐢宠鍑洪敊:" + resultJSON);
+			LogHelper.error("娓犻亾ID鐢宠鍑洪敊:" + e.getMsg());
 		}
 
 		return null;
@@ -1948,10 +1948,10 @@
 
 	// 娣樼ぜ閲戝垱寤�
 	public static TaoLiJinDTO createTaoLiJin(Long auctionId, String name, BigDecimal perface, int totalNum,
-			Date sendStartTime, Date sendEndTime, Date useStartTime, Date useEndTime,String pid) throws TaoKeApiException{
+			Date sendStartTime, Date sendEndTime, Date useStartTime, Date useEndTime,TaoKeAppInfo app) throws TaoKeApiException{
 		Map<String, String> map = new HashMap<>();
 		map.put("method", "taobao.tbk.dg.vegas.tlj.create");
-		map.put("adzone_id", pid.split("_")[3]);
+		map.put("adzone_id", app.getPid().split("_")[3]);
 		map.put("item_id", auctionId + "");
 		map.put("total_num", totalNum + "");
 		map.put("name", name);
@@ -1971,10 +1971,6 @@
 		
 		if(useStartTime != null)
 			map.put("use_start_time", TimeUtil.getGernalTime(useStartTime.getTime(), "yyyy-MM-dd"));
-
-		TaoKeAppInfo app = new TaoKeAppInfo();
-		app.setAppKey(TaoBaoConstant.TAOBAO_AUTH_APPKEY);
-		app.setAppSecret(TaoBaoConstant.TAOBAO_AUTH_APPSECRET);
 		try {
 			String result = TaoKeBaseUtil.baseRequestForThreeTimes(map, app);
 			JSONObject json = JSONObject.fromObject(result);
@@ -1996,6 +1992,7 @@
 					 switch(msgCode){
 				     case "FAIL_BIZ_ITEM_FORBIDDEN":
 				    	 throw new TaoKeApiException(TaoKeApiException.CODE_TLJ_FORBIDDEN, "璇ュ晢鍝佷笉鏀寔鍒涘缓娣樼ぜ閲戠孩鍖�");
+				     case "FAIL_BIZ_ACCOUNT_UN_PAID":
 				     case "2":
 				    	 throw new TaoKeApiException(TaoKeApiException.CODE_TLJ_NO_MONEY, "瀹樻柟鐜╂硶閽卞寘浣欓涓嶈冻");
 				     default:

--
Gitblit v1.8.0