|
@@ -133,6 +133,7 @@ import com.sheep.gamegroup.view.activity.ActUserNoviceGuidance;
|
|
|
import com.sheep.gamegroup.view.activity.ActVideoComment;
|
|
import com.sheep.gamegroup.view.activity.ActVideoComment;
|
|
|
import com.sheep.gamegroup.view.activity.ActVideoDetail;
|
|
import com.sheep.gamegroup.view.activity.ActVideoDetail;
|
|
|
import com.sheep.gamegroup.view.activity.ActWebX5;
|
|
import com.sheep.gamegroup.view.activity.ActWebX5;
|
|
|
|
|
+import com.sheep.gamegroup.view.activity.ActWebX5Single;
|
|
|
import com.sheep.gamegroup.view.activity.ActXianWanWeb;
|
|
import com.sheep.gamegroup.view.activity.ActXianWanWeb;
|
|
|
import com.sheep.gamegroup.view.activity.ActXiaomiGame;
|
|
import com.sheep.gamegroup.view.activity.ActXiaomiGame;
|
|
|
import com.sheep.gamegroup.view.activity.AskGetMoneyAct;
|
|
import com.sheep.gamegroup.view.activity.AskGetMoneyAct;
|
|
@@ -1017,6 +1018,42 @@ public class Jump2View {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public void goWebSingle(Context context, WebParams webParams, boolean needNewTask) {
|
|
|
|
|
+ String url = webParams.checkShowTitle().getUrl();
|
|
|
|
|
+ if (TextUtils.isEmpty(url)) {
|
|
|
|
|
+ G.showToast(R.string.service_data_error);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ //检查url是否是http开头并添加
|
|
|
|
|
+ if (!url.startsWith("http")) {
|
|
|
|
|
+ if (url.contains("://")) {
|
|
|
|
|
+ if (tryGotoDeepLink(url)) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ url = "http://" + url;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ webParams.setUrl(url);
|
|
|
|
|
+ if (StringUtils.isImageUrl(url)) {
|
|
|
|
|
+ showImg(context, webParams);
|
|
|
|
|
+ return;
|
|
|
|
|
+ } else if (StringUtils.isVideoUrl(url)) {
|
|
|
|
|
+ goActPlayVideo(url, webParams.getTitle());
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ Intent intent = new Intent(context, ActWebX5Single.class);
|
|
|
|
|
+ intent.putExtra(WebParams.class.getSimpleName(), webParams);
|
|
|
|
|
+ if (needNewTask) {
|
|
|
|
|
+ intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (webParams.isForResult()) {
|
|
|
|
|
+ ((Activity) context).startActivityForResult(intent, webParams.getAction());
|
|
|
|
|
+ } else {
|
|
|
|
|
+ context.startActivity(intent);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 跳到web页面
|
|
* 跳到web页面
|
|
|
*
|
|
*
|
|
@@ -2965,13 +3002,13 @@ public class Jump2View {
|
|
|
public void gotoGameVipRecharge(int discountId, String packageName, String token) {
|
|
public void gotoGameVipRecharge(int discountId, String packageName, String token) {
|
|
|
String url = Config.getUrlByPath(Config.PATH_DIRECTIONAL_RECHARGE + "/" + discountId, "packagename", packageName, "authorization", token, "ssnocache", "1");
|
|
String url = Config.getUrlByPath(Config.PATH_DIRECTIONAL_RECHARGE + "/" + discountId, "packagename", packageName, "authorization", token, "ssnocache", "1");
|
|
|
WebParams webParams = new WebParams(url, "抢购优惠").setShowTitle(false);
|
|
WebParams webParams = new WebParams(url, "抢购优惠").setShowTitle(false);
|
|
|
- Jump2View.getInstance().goWeb(SheepApp.getInstance(), webParams, true);
|
|
|
|
|
|
|
+ Jump2View.getInstance().goWebSingle(SheepApp.getInstance(), webParams, true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void gotoGameGoldCoins(String token) {
|
|
public void gotoGameGoldCoins(String token) {
|
|
|
String url = Config.getUrlByPath(Config.PATH_DIRECTIONAL_MAKEGOLD, "authorization", token, "ssnocache", "1");
|
|
String url = Config.getUrlByPath(Config.PATH_DIRECTIONAL_MAKEGOLD, "authorization", token, "ssnocache", "1");
|
|
|
WebParams webParams = new WebParams(url, "金丹传说").setShowTitle(false);
|
|
WebParams webParams = new WebParams(url, "金丹传说").setShowTitle(false);
|
|
|
- Jump2View.getInstance().goWeb(SheepApp.getInstance(), webParams, true);
|
|
|
|
|
|
|
+ Jump2View.getInstance().goWebSingle(SheepApp.getInstance(), webParams, true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|