|
|
@@ -546,7 +546,7 @@ public class FgtWebX5 extends BaseFgtWebX5 {
|
|
|
return true;
|
|
|
} else if (url.startsWith("https://wx.tenpay.com")) {
|
|
|
Map<String, String> extraHeaders = new HashMap<>();
|
|
|
- extraHeaders.put("Referer", "http://17xmy.com");
|
|
|
+ extraHeaders.put("Referer", getRefererUrl());
|
|
|
webViewLoadUrl(view, extraHeaders, url);
|
|
|
return true;
|
|
|
} else if (url.contains("kfzs.com")
|
|
|
@@ -590,6 +590,8 @@ public class FgtWebX5 extends BaseFgtWebX5 {
|
|
|
if (url.startsWith(Config.YF_SHOP_HOME)
|
|
|
|| url.startsWith("http://t.shop.17xmy.com/")
|
|
|
|| url.startsWith("http://www.youfanshop.com")
|
|
|
+ || url.startsWith("http://test.shop.17xmy.cn/")
|
|
|
+ || url.startsWith("http://shop.17xmy.cn/")
|
|
|
|| url.startsWith("http://10.8.220.251")) {
|
|
|
webParams.tokenFirstUpperCase();
|
|
|
}
|
|
|
@@ -597,6 +599,8 @@ public class FgtWebX5 extends BaseFgtWebX5 {
|
|
|
|| url.startsWith(Config.YF_SHOP_HOME)
|
|
|
|| url.startsWith("http://t.shop.17xmy.com/")
|
|
|
|| url.startsWith("http://10.8")
|
|
|
+ || url.startsWith("http://test.shop.17xmy.cn/")
|
|
|
+ || url.startsWith("http://shop.17xmy.cn/")
|
|
|
|| url.startsWith("http://www.youfanshop.com")
|
|
|
|| url.startsWith("http://h5.17xmy.com/"))
|
|
|
&& (!url.contains(webParams.getTokenKey()))) {
|
|
|
@@ -617,6 +621,14 @@ public class FgtWebX5 extends BaseFgtWebX5 {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ private String getRefererUrl() {
|
|
|
+ if (TextUtils.isEmpty(kfzsJs.referer)) {
|
|
|
+ return BuildConfig.DEBUG ? "http://test.shop.17xmy.cn/" : "http://shop.17xmy.cn/";
|
|
|
+ }
|
|
|
+ return kfzsJs.referer;
|
|
|
+ }
|
|
|
+
|
|
|
//在sdcard卡创建缩略图
|
|
|
//createImageFileInSdcard
|
|
|
@SuppressLint("SdCardPath")
|