From bbe1a381f99d957d003f48b68dfd5bf0e401f5f0 Mon Sep 17 00:00:00 2001
From: yujian <yujian>
Date: 星期二, 14 五月 2019 11:27:25 +0800
Subject: [PATCH] 合并

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/UserAuthController.java |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/UserAuthController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/UserAuthController.java
index 4c055f3..e0b2c6d 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/UserAuthController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/UserAuthController.java
@@ -61,12 +61,6 @@
 			return;
 		}
 		
-	
-			
-			
-		
-
-		//
 		UserExtraTaoBaoInfo user = userExtraTaoBaoInfoService.getByUid(uid);
 		if ("share".equalsIgnoreCase(source)) {
 			if (user != null && !StringUtil.isNullOrEmpty(user.getRelationId()) && user.getRelationValid()) {
@@ -74,7 +68,7 @@
 				return;
 			}
 
-		} else {
+		} else if ("zigou".equalsIgnoreCase(source)) {
 			if (user != null && !StringUtil.isNullOrEmpty(user.getSpecialId()) && user.getSpecialValid()) {
 				out.print(JsonUtil.loadFalseResult(1, "鏃犻渶鎺堟潈"));
 				return;
@@ -84,8 +78,7 @@
 		String link = TaoBaoUtil.getTaoBaoUnionAuthUrl(TaoBaoConstant.TAOBAO_AUTH_APPKEY,
 				"http://api.flqapp.com/fanli/client/v1/auth/callback/tb", uid, source);
 
-		String orderJS = "var orderId= document.getElementById('tp-bought-root').getElementsByClassName('js-order-container')[0].getElementsByTagName('div')[0].getAttribute('data-id');";
-		orderJS += "if(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {window.location.href='yestv://taobaoorder#'+orderId;} else {window.handle.showOrder(orderId)}";
+		String orderJS=configService.get("taobao_order_parse_js"); 
 		JSONObject data = new JSONObject();
 		data.put("authLink", link);
 		try {
@@ -101,4 +94,9 @@
 		else
 			out.print(JsonUtil.loadTrue(0, data, "娣樺疂鎺堟潈鏈垚鍔燂紝璇风◢鍚庡啀璇�"));
 	}
+	
 }
+
+
+
+

--
Gitblit v1.8.0