|
|
@@ -1020,7 +1020,7 @@ public class Jump2View {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void goWebSingle(Context context, WebParams webParams, boolean needNewTask) {
|
|
|
+ public void goWebSingle(Context context, WebParams webParams, boolean needNewTask, int orient) {
|
|
|
String url = webParams.checkShowTitle().getUrl();
|
|
|
if (TextUtils.isEmpty(url)) {
|
|
|
G.showToast(R.string.service_data_error);
|
|
|
@@ -1046,7 +1046,7 @@ public class Jump2View {
|
|
|
}
|
|
|
Intent intent = new Intent(context, ActWebX5Single.class);
|
|
|
intent.putExtra(WebParams.class.getSimpleName(), webParams);
|
|
|
- intent.putExtra("extra_orient", 1);
|
|
|
+ intent.putExtra("extra_orient", orient);
|
|
|
if (needNewTask) {
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
}
|
|
|
@@ -3004,24 +3004,24 @@ public class Jump2View {
|
|
|
Jump2View.getInstance().goWeb(SheepApp.getInstance(), webParams);
|
|
|
}
|
|
|
|
|
|
- public void gotoGameVipRecharge(int discountId, String packageName, String token) {
|
|
|
+ public void gotoGameVipRecharge(int discountId, String packageName, String token, int orient) {
|
|
|
SdkLoginUser gameUser = DDProviderHelper.getInstance().getSdkLoginUser(token);
|
|
|
if (gameUser != null) {
|
|
|
token = gameUser.getToken();
|
|
|
}
|
|
|
String url = Config.getUrlByPath(Config.PATH_DIRECTIONAL_RECHARGE + "/" + discountId, "packagename", packageName, "authorization", token, "ssnocache", "1");
|
|
|
WebParams webParams = new WebParams(url, "抢购优惠").setShowTitle(false);
|
|
|
- Jump2View.getInstance().goWebSingle(SheepApp.getInstance(), webParams, true);
|
|
|
+ Jump2View.getInstance().goWebSingle(SheepApp.getInstance(), webParams, true, orient);
|
|
|
}
|
|
|
|
|
|
- public void gotoGameGoldCoins(String token) {
|
|
|
+ public void gotoGameGoldCoins(String token, int orient) {
|
|
|
SdkLoginUser gameUser = DDProviderHelper.getInstance().getSdkLoginUser(token);
|
|
|
if (gameUser != null) {
|
|
|
token = gameUser.getToken();
|
|
|
}
|
|
|
String url = Config.getUrlByPath(Config.PATH_DIRECTIONAL_MAKEGOLD, "authorization", token, "ssnocache", "1");
|
|
|
WebParams webParams = new WebParams(url, "金丹传说").setShowTitle(false);
|
|
|
- Jump2View.getInstance().goWebSingle(SheepApp.getInstance(), webParams, true);
|
|
|
+ Jump2View.getInstance().goWebSingle(SheepApp.getInstance(), webParams, true, orient);
|
|
|
}
|
|
|
|
|
|
/**
|