|
|
@@ -2364,8 +2364,7 @@ public class CommonUtil {
|
|
|
Ext ext;
|
|
|
switch (item.getType()) {// 0,类型 1跳转试玩赚钱、2单个任务详情、3信用卡办理、4 H5页面、5 微信二维码任务
|
|
|
case 1:
|
|
|
- Jump2View.getInstance()
|
|
|
- .goTryplayView(activity, null);
|
|
|
+ Jump2View.getInstance().goTryplayView(activity, null);
|
|
|
break;
|
|
|
case 2:
|
|
|
ext = EntityUtils.getExtInfo(item.getExt());
|
|
|
@@ -2380,30 +2379,29 @@ public class CommonUtil {
|
|
|
.goCreditCardTaskList(activity, 3);
|
|
|
break;
|
|
|
case 4:
|
|
|
- if (!TextUtils.isEmpty(item.getObjects())) {
|
|
|
- ext = EntityUtils.getExtInfo(item.getExt());
|
|
|
- if (ext == null) {
|
|
|
- G.showToast(R.string.error_data);
|
|
|
- return;
|
|
|
- }
|
|
|
- if (ext.getTitle() == null)//外部浏览器加载H5
|
|
|
- Jump2View.getInstance().goWeb(activity, ext.getUrl());
|
|
|
- else//内部WebView加载H5
|
|
|
- Jump2View.getInstance().goWeb(activity, ext.getUrl(), ext.getTitle());
|
|
|
+ ext = EntityUtils.getExtInfo(item.getExt());
|
|
|
+ if (ext == null) {
|
|
|
+ G.showToast(R.string.error_data);
|
|
|
+ return;
|
|
|
}
|
|
|
-
|
|
|
+ if (ext.getTitle() == null)//外部浏览器加载H5
|
|
|
+ Jump2View.getInstance().goWeb(activity, ext.getUrl());
|
|
|
+ else//内部WebView加载H5
|
|
|
+ Jump2View.getInstance().goWeb(activity, ext.getUrl(), ext.getTitle());
|
|
|
break;
|
|
|
case 5:
|
|
|
- if (!TextUtils.isEmpty(item.getObjects())) {
|
|
|
- Jump2View.getInstance().goWeb(activity, item.getObjects(), "微信二维码辅助好友注册任务");
|
|
|
+ ext = EntityUtils.getExtInfo(item.getExt());
|
|
|
+ if (ext == null || ext.getUrl() == null) {
|
|
|
+ G.showToast(R.string.error_data);
|
|
|
+ return;
|
|
|
}
|
|
|
+ Jump2View.getInstance().goWeb(activity, ext.getUrl(), "微信二维码辅助好友注册任务");
|
|
|
|
|
|
break;
|
|
|
case 6://连续任务
|
|
|
Jump2View.getInstance().goSequentialTaskView(activity);
|
|
|
break;
|
|
|
case 9://打卡赚钱
|
|
|
- G.showToast("打卡赚钱");
|
|
|
Jump2View.getInstance().goSignCardAct(activity, null);
|
|
|
break;
|
|
|
case 7://玩转游戏
|