|
@@ -397,7 +397,7 @@ public class Jump2View {
|
|
|
* @param object
|
|
* @param object
|
|
|
*/
|
|
*/
|
|
|
public void goHomePageView(final Activity context, Object object) {
|
|
public void goHomePageView(final Activity context, Object object) {
|
|
|
- final Intent intent = new Intent(context, ActMain.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
|
|
|
|
|
|
+ final Intent intent = new Intent(context, ActTest.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
|
|
if (object instanceof String) {
|
|
if (object instanceof String) {
|
|
|
//统计用户登录信息
|
|
//统计用户登录信息
|
|
|
UMConfigUtils.onProfileSignIn();
|
|
UMConfigUtils.onProfileSignIn();
|
|
@@ -1046,7 +1046,7 @@ public class Jump2View {
|
|
|
public void goH5Game(Context context, String url) {
|
|
public void goH5Game(Context context, String url) {
|
|
|
WebParams wp = new WebParams(url, "游戏");
|
|
WebParams wp = new WebParams(url, "游戏");
|
|
|
wp.setNeedJsInteract(true);
|
|
wp.setNeedJsInteract(true);
|
|
|
- wp.setJsUrl(Config.SMALL_STATION_URL + Config.STATION_SMALL_SHEEP_H5GAME + "/bridge.js");
|
|
|
|
|
|
|
+// wp.setJsUrl(Config.SMALL_STATION_URL + Config.STATION_SMALL_SHEEP_H5GAME + "/bridge.js");
|
|
|
Jump2View.getInstance().goWeb(context, wp, true);
|
|
Jump2View.getInstance().goWeb(context, wp, true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2915,11 +2915,10 @@ public class Jump2View {
|
|
|
public void goPlayGameDetail(int id, boolean isAutoDownload) {
|
|
public void goPlayGameDetail(int id, boolean isAutoDownload) {
|
|
|
GAME_PLAY_GAME_DETAIL.onEvent();
|
|
GAME_PLAY_GAME_DETAIL.onEvent();
|
|
|
if (id > 0) {
|
|
if (id > 0) {
|
|
|
- Activity activity = SheepApp.getInstance().getCurrentActivity();
|
|
|
|
|
- Intent intent = new Intent(activity, ActGameGroupOrGameDetail.class);
|
|
|
|
|
|
|
+ Intent intent = new Intent(SheepApp.getInstance(), ActGameGroupOrGameDetail.class);
|
|
|
intent.putExtra("id", id);
|
|
intent.putExtra("id", id);
|
|
|
intent.putExtra(AUTO_DOWNLOAD, isAutoDownload);
|
|
intent.putExtra(AUTO_DOWNLOAD, isAutoDownload);
|
|
|
- goPlayGameDetailAndCheckWelfare(activity, intent, id);
|
|
|
|
|
|
|
+ goPlayGameDetailAndCheckWelfare(SheepApp.getInstance(), intent, id);
|
|
|
} else {
|
|
} else {
|
|
|
G.showToast(R.string.please_contact_customer_service);
|
|
G.showToast(R.string.please_contact_customer_service);
|
|
|
}
|
|
}
|
|
@@ -2928,7 +2927,7 @@ public class Jump2View {
|
|
|
/**
|
|
/**
|
|
|
* 小绵羊3.4.10新增 -- 游戏组游戏详情 界面
|
|
* 小绵羊3.4.10新增 -- 游戏组游戏详情 界面
|
|
|
*/
|
|
*/
|
|
|
- public void goPlayGameDetailAndCheckWelfare(Activity activity, Intent intent, int appId) {
|
|
|
|
|
|
|
+ public void goPlayGameDetailAndCheckWelfare(Context context, Intent intent, int appId) {
|
|
|
SheepApp.getInstance().getNetComponent().getApiService().getAppWelfareAndMoneyReward(1, DataUtil.PER_PAGE, appId)
|
|
SheepApp.getInstance().getNetComponent().getApiService().getAppWelfareAndMoneyReward(1, DataUtil.PER_PAGE, appId)
|
|
|
.subscribeOn(Schedulers.io())
|
|
.subscribeOn(Schedulers.io())
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
@@ -2938,13 +2937,13 @@ public class Jump2View {
|
|
|
List<Release_task> list = baseMessage.getDataList(Release_task.class);
|
|
List<Release_task> list = baseMessage.getDataList(Release_task.class);
|
|
|
boolean hasWelfare = !ListUtil.isEmpty(list);
|
|
boolean hasWelfare = !ListUtil.isEmpty(list);
|
|
|
intent.putExtra(KEY_HAS_WELFARE, hasWelfare);
|
|
intent.putExtra(KEY_HAS_WELFARE, hasWelfare);
|
|
|
- activity.startActivity(intent);
|
|
|
|
|
|
|
+ context.startActivity(intent);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void onError(BaseMessage baseMessage) {
|
|
public void onError(BaseMessage baseMessage) {
|
|
|
intent.putExtra(KEY_HAS_WELFARE, false);
|
|
intent.putExtra(KEY_HAS_WELFARE, false);
|
|
|
- activity.startActivity(intent);
|
|
|
|
|
|
|
+ context.startActivity(intent);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|