From a6f34b99ee20e528b766c8ed5a61bd9c5aa0e7ae Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 16 十一月 2019 18:10:33 +0800
Subject: [PATCH] 淘宝相似商品推荐接口优化,根据商品ID搜索商品基本信息优化

---
 fanli/src/main/java/com/yeshi/fanli/util/Constant.java |   58 +++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 47 insertions(+), 11 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/util/Constant.java b/fanli/src/main/java/com/yeshi/fanli/util/Constant.java
index 2105715..eb69dd2 100644
--- a/fanli/src/main/java/com/yeshi/fanli/util/Constant.java
+++ b/fanli/src/main/java/com/yeshi/fanli/util/Constant.java
@@ -24,6 +24,8 @@
 	public static boolean IS_TEST = true;
 
 	public static int PAGE_SIZE = 20;
+	
+	public static String YINGYONGBAO_LINK="https://a.app.qq.com/o/simple.jsp?pkgname=com.yeshi.ec.rebate";
 
 	public final static String UIDAESKEY = "WW782ss@8*px/%2v";
 
@@ -101,6 +103,8 @@
 	public static final int SOURCE_TYPE_WPH = 4;
 	// 鏉ユ簮-鑻忓畞
 	public static final int SOURCE_TYPE_SUNING = 5;
+	// 鏉ユ簮-楗夸簡涔�
+	public static final int SOURCE_TYPE_ELME = 6;
 
 	// 鑷喘-杩斿埄
 	public static final int TYPE_REBATE = 1;
@@ -113,7 +117,39 @@
 	public static final int TOKEN_DAYS = 1;
 	// 璧犻�佹湁鏁堟湡-澶�
 	public static final int GIVE_DAYS = 1;
+	
+	
+	// 寰俊鑷姩鎻愮幇閲戦
+	public static final int AUTO_EXTRACT_MONEY = 1;
+	// 寰俊鑷姩鎻愮幇鏈�浣庝綑棰�
+	public static final int AUTO_EXTRACT_MIN_SURPLUS = 2;
 
+	
+	// 绾㈠寘濂栧姳-鍒拌处濂栧姳涓嶄綆浜�5鍏�
+	public static final BigDecimal RED_PACK_ORDER_REWARD_MIN = new BigDecimal("5");
+	// 绾㈠寘濂栧姳闅忔満鑼冨洿
+	public static final double RED_PACK_RANDOM_MIN = 0.5;
+	public static final double RED_PACK_RANDOM_MAX = 2;
+	// 绾㈠寘濂栧姳璁㈠崟瀹炰粯娆炬渶浣�
+	public static final BigDecimal RED_PACK_PAY_MIN = new BigDecimal("10");
+	// 绾㈠寘濂栧姳鍒嗕韩璁㈠崟杩炵画濂栧姳鏈堟暟
+	public static final int RED_PACK_REWARD_MONTH = 15;
+	// 绾㈠寘濂栧姳-鍗曚綅鏃堕棿绫荤疮璁′骇鐢熲墺200閲戝竵
+	public static final long RED_PACK_GOLD_COIN = 200;
+	// 绾㈠寘濂栧姳-閭�璇锋椂闂寸瓫閫� 2019-11-14 11:51:43
+	public static final long RED_PACK_REWARD_TIME = 1573703503000L;
+	
+	// 鏂颁汉濂栧姳杩炵画澶╂暟
+	public static final long RED_PACK_NEW_USER_DAYS = 7;
+	// 鏂颁汉濂栧姳鏈�楂�
+	public static final BigDecimal RED_PACK_NEW_USER_MONEY = new BigDecimal("2");
+	// 鏂颁汉濂栧姳绗竴娆¢殢鏈烘渶灏�
+	public static final int RED_PACK_NEW_USER_MIN = 50;
+	// 鏂颁汉濂栧姳绗竴娆¢殢鏈烘渶澶�
+	public static final int RED_PACK_NEW_USER_MAX = 60;
+		
+	
+	
 	public static WXGZConfig wxGZConfig;
 
 	// 鐭俊楠岃瘉鐮侀厤缃�
@@ -248,6 +284,8 @@
 			return "鍞搧浼�";
 		case SOURCE_TYPE_SUNING:
 			return "鑻忓畞";
+		case SOURCE_TYPE_ELME:
+			return "楗夸簡涔�";
 		default:// 鍏朵粬绫诲瀷
 			return "";
 		}
@@ -263,19 +301,17 @@
 	}
 
 	public static String getAppName(String platform, String version) {
-		if (VersionUtil.greaterThan_2_0(platform, version))
-			return Constant.systemCommonConfig.getProjectChineseName();
-		else
-			return "杩斿埄鍒�";
+		// if (VersionUtil.greaterThan_2_0(platform, version))
+		return Constant.systemCommonConfig.getProjectChineseName();
+		// else
+		// return "杩斿埄鍒�";
 	}
 
 	public static WXAccountInfoDTO getWXAccount(String platform, String version) {
-//		if (VersionUtil.greaterThan_2_0(platform, version)) {
-//			return new WXAccountInfoDTO("wxa99686bb65a9f466", "57390718ddedaa1591f6876cdcf96f43", "wx879fb78463222cd5",
-//					"2ad8ec333a9f96b13c5c5c1c2b13cd67");
-//		} else {
-			return new WXAccountInfoDTO("wx43617e2ed82c5b28", "f8a65908fb4681bdd181de70f6ab9a3b", "wx5c0d167c6e3ad726",
-					"0c79d5869bb0f2d7c13e43f9a18f440d");
-//		}
+		// return new WXAccountInfoDTO("wx43617e2ed82c5b28",
+		// "f8a65908fb4681bdd181de70f6ab9a3b", "wx5c0d167c6e3ad726",
+		// "0c79d5869bb0f2d7c13e43f9a18f440d");
+		return new WXAccountInfoDTO("wxa99686bb65a9f466", "57390718ddedaa1591f6876cdcf96f43", "wx5c0d167c6e3ad726",
+				"0c79d5869bb0f2d7c13e43f9a18f440d");
 	}
 }

--
Gitblit v1.8.0