|
|
@@ -213,6 +213,10 @@ import me.iwf.photopicker.PhotoPreview;
|
|
|
import okhttp3.Call;
|
|
|
import rx.functions.Action1;
|
|
|
|
|
|
+import static com.sheep.gamegroup.model.entity.TaskEty.TASK_TYPE_CREDIT_CARD;
|
|
|
+import static com.sheep.gamegroup.model.entity.TaskEty.TASK_TYPE_REWARD;
|
|
|
+import static com.sheep.gamegroup.model.entity.TaskEty.TASK_TYPE_VIDEO_AD;
|
|
|
+import static com.sheep.gamegroup.model.entity.TaskEty.TASK_TYPE_WELFARE;
|
|
|
import static com.sheep.gamegroup.module.game.activity.ActGameGroupOrGameDetail.AUTO_DOWNLOAD;
|
|
|
import static com.sheep.gamegroup.module.game.activity.ActGameGroupOrGameDetail.KEY_HAS_WELFARE;
|
|
|
import static com.sheep.gamegroup.util.UMConfigUtils.Event.ASK_MAKE_MONEY_INVITATION;
|
|
|
@@ -1906,23 +1910,29 @@ public class Jump2View {
|
|
|
*/
|
|
|
public void goEntity(Release_task item) {
|
|
|
if (item != null) {
|
|
|
- switch (item.getTask().getTask_type()) {
|
|
|
- case 1019:
|
|
|
+ goEntity(item.getTask());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public void goEntity(TaskEty item) {
|
|
|
+ if (item != null) {
|
|
|
+ switch (item.getTask_type()) {
|
|
|
+ case TASK_TYPE_WELFARE:
|
|
|
goWeb(SheepApp.getInstance().getCurrentActivity(), new WebParams(Config.getUrlByPath(Config.PATH_WELFARE_DETAIL
|
|
|
- , "id", item.getId(), "device_id", DeviceUtil.getDeviceId(SheepApp.getInstance()), "app_version", String.valueOf(BuildConfig.VERSION_CODE))).setTitle(item.getName()));
|
|
|
+ , "id", item.getRelease_task_id(), "device_id", DeviceUtil.getDeviceId(SheepApp.getInstance()), "app_version", String.valueOf(BuildConfig.VERSION_CODE))).setTitle(item.getName()));
|
|
|
break;
|
|
|
- case 1020:
|
|
|
+ case TASK_TYPE_REWARD:
|
|
|
goWeb(SheepApp.getInstance().getCurrentActivity(), new WebParams(Config.getUrlByPath(Config.PATH_MONEY_REWARD_DETAIL
|
|
|
- , "id", item.getId(), "device_id", DeviceUtil.getDeviceId(SheepApp.getInstance()), "app_version", String.valueOf(BuildConfig.VERSION_CODE))).setTitle(item.getName()));
|
|
|
+ , "id", item.getRelease_task_id(), "device_id", DeviceUtil.getDeviceId(SheepApp.getInstance()), "app_version", String.valueOf(BuildConfig.VERSION_CODE))).setTitle(item.getName()));
|
|
|
break;
|
|
|
- case 1021:
|
|
|
- goVideoTaskView(SheepApp.getInstance().getCurrentActivity(), item.getId());
|
|
|
+ case TASK_TYPE_VIDEO_AD:
|
|
|
+ goVideoTaskView(SheepApp.getInstance().getCurrentActivity(), item.getRelease_task_id());
|
|
|
break;
|
|
|
- case 2:
|
|
|
- goCreditCardTaskDetail(SheepApp.getInstance().getCurrentActivity(), item.getId());
|
|
|
+ case TASK_TYPE_CREDIT_CARD:
|
|
|
+ goCreditCardTaskDetail(SheepApp.getInstance().getCurrentActivity(), item.getRelease_task_id());
|
|
|
break;
|
|
|
default:
|
|
|
- goTaskDetailView(SheepApp.getInstance().getCurrentActivity(), item.getId());
|
|
|
+ goTaskDetailView(SheepApp.getInstance().getCurrentActivity(), item.getRelease_task_id());
|
|
|
break;
|
|
|
}
|
|
|
}
|