|
@@ -13,7 +13,6 @@ import android.provider.MediaStore;
|
|
|
import android.support.v7.app.ActionBar;
|
|
import android.support.v7.app.ActionBar;
|
|
|
import android.support.v7.app.AlertDialog;
|
|
import android.support.v7.app.AlertDialog;
|
|
|
import android.text.TextUtils;
|
|
import android.text.TextUtils;
|
|
|
-import android.util.Log;
|
|
|
|
|
import android.view.MotionEvent;
|
|
import android.view.MotionEvent;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
import android.view.ViewGroup;
|
|
@@ -26,15 +25,12 @@ import android.widget.ProgressBar;
|
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
|
import com.sheep.gamegroup.dateview.DateUtil;
|
|
import com.sheep.gamegroup.dateview.DateUtil;
|
|
|
import com.sheep.gamegroup.model.entity.WebParams;
|
|
import com.sheep.gamegroup.model.entity.WebParams;
|
|
|
-import com.sheep.gamegroup.module.webview.util.WebResourceRequestAdapter;
|
|
|
|
|
-import com.sheep.gamegroup.module.webview.util.WebResourceResponseAdapter;
|
|
|
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
|
import com.sheep.gamegroup.util.Constant;
|
|
import com.sheep.gamegroup.util.Constant;
|
|
|
import com.sheep.gamegroup.util.DataUtil;
|
|
import com.sheep.gamegroup.util.DataUtil;
|
|
|
import com.sheep.gamegroup.util.DeviceUtil;
|
|
import com.sheep.gamegroup.util.DeviceUtil;
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
import com.sheep.gamegroup.util.LogUtil;
|
|
import com.sheep.gamegroup.util.LogUtil;
|
|
|
-import com.sheep.gamegroup.util.NetUtil;
|
|
|
|
|
import com.sheep.gamegroup.util.StringUtils;
|
|
import com.sheep.gamegroup.util.StringUtils;
|
|
|
import com.sheep.gamegroup.util.TestUtil;
|
|
import com.sheep.gamegroup.util.TestUtil;
|
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
@@ -72,7 +68,6 @@ import butterknife.BindView;
|
|
|
import cn.finalteam.rxgalleryfinal.utils.CameraUtil;
|
|
import cn.finalteam.rxgalleryfinal.utils.CameraUtil;
|
|
|
import cn.modificator.waterwave_progress.WidgetUtil;
|
|
import cn.modificator.waterwave_progress.WidgetUtil;
|
|
|
import okhttp3.Call;
|
|
import okhttp3.Call;
|
|
|
-import ren.yale.android.cachewebviewlib.WebViewCacheInterceptorInst;
|
|
|
|
|
|
|
|
|
|
import static android.app.Activity.RESULT_OK;
|
|
import static android.app.Activity.RESULT_OK;
|
|
|
|
|
|
|
@@ -395,7 +390,9 @@ public class FgtWebX5 extends BaseFgtWebX5 {
|
|
|
//微信H5支付核心代码
|
|
//微信H5支付核心代码
|
|
|
if (url.startsWith(Config.SHEEP_PAY)) {
|
|
if (url.startsWith(Config.SHEEP_PAY)) {
|
|
|
String order_no = StringUtils.getQueryParameter(url, Config.YF_SHOP_ORDER_NUMBER_KEY);
|
|
String order_no = StringUtils.getQueryParameter(url, Config.YF_SHOP_ORDER_NUMBER_KEY);
|
|
|
- Jump2View.getInstance().goActPay(SheepApp.getInstance().getCurrentActivity(), order_no, SpUtils.getToken(SheepApp.getInstance()));
|
|
|
|
|
|
|
+ String redirectUrl = StringUtils.getQueryParameter(url, Config.YF_SHOP_ORDER_REDIRECT_URL);
|
|
|
|
|
+ Jump2View.getInstance().goPay(SheepApp.getInstance().getCurrentActivity(), order_no, SpUtils.getToken(SheepApp.getInstance()));
|
|
|
|
|
+ webViewLoadUrl(view, redirectUrl);
|
|
|
return true;
|
|
return true;
|
|
|
} else if (url.startsWith(Config.SHEEP)) {
|
|
} else if (url.startsWith(Config.SHEEP)) {
|
|
|
MiddleSchemeAct.parseAndJumpUri(SheepApp.getInstance().getCurrentActivity(), Uri.parse(url));
|
|
MiddleSchemeAct.parseAndJumpUri(SheepApp.getInstance().getCurrentActivity(), Uri.parse(url));
|
|
@@ -471,6 +468,7 @@ public class FgtWebX5 extends BaseFgtWebX5 {
|
|
|
}
|
|
}
|
|
|
if ((url.startsWith(Config.SMALL_STATION_URL_SHEEP)
|
|
if ((url.startsWith(Config.SMALL_STATION_URL_SHEEP)
|
|
|
|| url.startsWith(Config.YF_SHOP_HOME)
|
|
|| url.startsWith(Config.YF_SHOP_HOME)
|
|
|
|
|
+ || url.startsWith("http://t.shop.17xmy.com/")
|
|
|
|| url.startsWith("http://10.8"))
|
|
|| url.startsWith("http://10.8"))
|
|
|
&&(!url.contains(webParams.getTokenKey()))) {
|
|
&&(!url.contains(webParams.getTokenKey()))) {
|
|
|
loadUrl = StringUtils.addUrlQuery(url, webParams.getTokenKey(), SpUtils.getToken(SheepApp.getInstance()));
|
|
loadUrl = StringUtils.addUrlQuery(url, webParams.getTokenKey(), SpUtils.getToken(SheepApp.getInstance()));
|