|
@@ -18,10 +18,12 @@ import com.arialyy.aria.core.inf.IEntity;
|
|
|
import com.kfzs.duanduan.datashare.provider.download.DownLoadInfo;
|
|
import com.kfzs.duanduan.datashare.provider.download.DownLoadInfo;
|
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
|
import com.sheep.gamegroup.model.entity.HomeListEntity;
|
|
import com.sheep.gamegroup.model.entity.HomeListEntity;
|
|
|
|
|
+import com.sheep.gamegroup.model.entity.RequestParameEty;
|
|
|
import com.sheep.gamegroup.model.entity.TaskEty;
|
|
import com.sheep.gamegroup.model.entity.TaskEty;
|
|
|
import com.sheep.gamegroup.model.entity.TaskListen;
|
|
import com.sheep.gamegroup.model.entity.TaskListen;
|
|
|
import com.sheep.gamegroup.model.entity.WebviewEntity;
|
|
import com.sheep.gamegroup.model.entity.WebviewEntity;
|
|
|
import com.sheep.gamegroup.model.entity.WithdrawalEty;
|
|
import com.sheep.gamegroup.model.entity.WithdrawalEty;
|
|
|
|
|
+import com.sheep.gamegroup.presenter.TryMakeMoneyPresenter;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.ClassFileHelper;
|
|
import com.sheep.jiuyan.samllsheep.utils.ClassFileHelper;
|
|
@@ -208,11 +210,12 @@ public class CommonUtil {
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
* 任务传送数据组装
|
|
* 任务传送数据组装
|
|
|
|
|
+ * is_succession:0:不是连续 1:联系任务
|
|
|
*/
|
|
*/
|
|
|
public HashMap<String, String> setHashMap(int page, int per_page,
|
|
public HashMap<String, String> setHashMap(int page, int per_page,
|
|
|
int platform, int is_hot,
|
|
int platform, int is_hot,
|
|
|
int is_recommend, int about_to_begin,
|
|
int is_recommend, int about_to_begin,
|
|
|
- int task_type){
|
|
|
|
|
|
|
+ int task_type, int is_succession){
|
|
|
|
|
|
|
|
HashMap<String, String> hashMap = new HashMap<>();
|
|
HashMap<String, String> hashMap = new HashMap<>();
|
|
|
hashMap.put("page", page+"");
|
|
hashMap.put("page", page+"");
|
|
@@ -222,6 +225,7 @@ public class CommonUtil {
|
|
|
hashMap.put("is_recommend", is_recommend+"");
|
|
hashMap.put("is_recommend", is_recommend+"");
|
|
|
hashMap.put("about_to_begin", about_to_begin+"");
|
|
hashMap.put("about_to_begin", about_to_begin+"");
|
|
|
hashMap.put("task_type", task_type+"");
|
|
hashMap.put("task_type", task_type+"");
|
|
|
|
|
+ hashMap.put("is_succession", is_succession+"");
|
|
|
return hashMap;
|
|
return hashMap;
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
@@ -374,6 +378,9 @@ public class CommonUtil {
|
|
|
Jump2View.getInstance().goWeb(context,
|
|
Jump2View.getInstance().goWeb(context,
|
|
|
entity.getUrl(), "微信二维码辅助好友注册任务");
|
|
entity.getUrl(), "微信二维码辅助好友注册任务");
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case 8://连续任务
|
|
|
|
|
+ Jump2View.getInstance().goTryplayView(context, 1);
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
break;
|
|
@@ -459,4 +466,25 @@ public class CommonUtil {
|
|
|
}
|
|
}
|
|
|
// SheepApp.getInstance().setTaskEty(tAskEnty);
|
|
// SheepApp.getInstance().setTaskEty(tAskEnty);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取正在进行中的任务
|
|
|
|
|
+ */
|
|
|
|
|
+ public void getRunTask(TryMakeMoneyPresenter presenter,
|
|
|
|
|
+ int is_succession){
|
|
|
|
|
+
|
|
|
|
|
+ RequestParameEty parameEty = new RequestParameEty();
|
|
|
|
|
+ parameEty.setHashMap(
|
|
|
|
|
+ CommonUtil.getInstance()
|
|
|
|
|
+ .setHashMap(1,
|
|
|
|
|
+ 100,
|
|
|
|
|
+ 1,
|
|
|
|
|
+ 1,
|
|
|
|
|
+ 0,
|
|
|
|
|
+ 0,
|
|
|
|
|
+ -1,
|
|
|
|
|
+ is_succession));
|
|
|
|
|
+ presenter.returnTask(parameEty);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|