Explorar o código

add yf shop test server support

billyyoyo %!s(int64=5) %!d(string=hai) anos
pai
achega
f84cf00b0e

+ 3 - 1
app/src/main/java/com/sheep/gamegroup/module/webview/fragment/FgtWeb.java

@@ -461,7 +461,9 @@ public class FgtWeb extends BaseFgtWeb {
             mWebView.addJavascriptInterface(new KFZSJs(SheepApp.getInstance().getCurrentActivity(), this), "kfzsjs");
             String loadUrl = url;
             if (webParams.getTokenKey() != null) {
-                if (url.startsWith(Config.YF_SHOP_HOME)) {
+                if (url.startsWith(Config.YF_SHOP_HOME)
+                        || url.startsWith("http://t.shop.17xmy.com/")
+                        || url.startsWith("http://10.8.220.251")) {
                     webParams.tokenFirstUpperCase();
                 }
                 if ((url.startsWith(Config.SMALL_STATION_URL_SHEEP)

+ 3 - 1
app/src/main/java/com/sheep/gamegroup/module/webview/fragment/FgtWebX5.java

@@ -464,7 +464,9 @@ public class FgtWebX5 extends BaseFgtWebX5 {
             mWebView.addJavascriptInterface(new KFZSJs(SheepApp.getInstance().getCurrentActivity(), this), "kfzsjs");
             String loadUrl = url;
             if (webParams.getTokenKey() != null) {
-                if (url.startsWith(Config.YF_SHOP_HOME)) {
+                if (url.startsWith(Config.YF_SHOP_HOME)
+                        || url.startsWith("http://t.shop.17xmy.com/")
+                        || url.startsWith("http://10.8.220.251")) {
                     webParams.tokenFirstUpperCase();
                 }
                 if ((url.startsWith(Config.SMALL_STATION_URL_SHEEP)