|
|
@@ -31,6 +31,7 @@ import com.sheep.gamegroup.model.entity.DialogConfig;
|
|
|
import com.sheep.gamegroup.model.entity.DialogEntity;
|
|
|
import com.sheep.gamegroup.model.entity.DiscoveryTopic;
|
|
|
import com.sheep.gamegroup.model.entity.DiscoveryVideo;
|
|
|
+import com.sheep.gamegroup.model.entity.GameEntity;
|
|
|
import com.sheep.gamegroup.model.entity.GameListTag;
|
|
|
import com.sheep.gamegroup.model.entity.GameListType;
|
|
|
import com.sheep.gamegroup.model.entity.HomeListEntity;
|
|
|
@@ -39,6 +40,7 @@ import com.sheep.gamegroup.model.entity.LoginEntity;
|
|
|
import com.sheep.gamegroup.model.entity.Mission;
|
|
|
import com.sheep.gamegroup.model.entity.NewbieTask;
|
|
|
import com.sheep.gamegroup.model.entity.NewbieTaskRecord;
|
|
|
+import com.sheep.gamegroup.model.entity.Release_task;
|
|
|
import com.sheep.gamegroup.model.entity.RouserArticlesEntity;
|
|
|
import com.sheep.gamegroup.model.entity.SystemNotification;
|
|
|
import com.sheep.gamegroup.model.entity.TaskAcceptedEty;
|
|
|
@@ -1811,11 +1813,35 @@ public class Jump2View {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 跳转任务详情界面
|
|
|
+ *
|
|
|
+ * @param item
|
|
|
+ */
|
|
|
+ public void goEntity(Release_task item) {
|
|
|
+ if(item != null){
|
|
|
+ goTaskDetailView(SheepApp.getInstance().getCurrentActivity(), item.getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 跳转游戏详情界面
|
|
|
+ *
|
|
|
+ * @param item
|
|
|
+ */
|
|
|
+ public void goEntity(GameEntity item) {
|
|
|
+ if(item != null){
|
|
|
+ if(item.getApp() != null){
|
|
|
+ goEntity(item.getApp());
|
|
|
+ } else if(item.getRelease_task() != null){
|
|
|
+ goEntity(item.getRelease_task());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /**
|
|
|
* 发现模块--游戏详情界面
|
|
|
*
|
|
|
* @param item
|
|
|
*/
|
|
|
- public void goFindGame(Article item) {
|
|
|
+ public void goEntity(Article item) {
|
|
|
goPlayGameDetail(item.getApplication_id());
|
|
|
}
|
|
|
|
|
|
@@ -1824,7 +1850,7 @@ public class Jump2View {
|
|
|
*
|
|
|
* @param item
|
|
|
*/
|
|
|
- public void goFindGame(Applications item) {
|
|
|
+ public void goEntity(Applications item) {
|
|
|
goPlayGameDetail(item.getId());
|
|
|
}
|
|
|
|
|
|
@@ -1875,12 +1901,9 @@ public class Jump2View {
|
|
|
//分享
|
|
|
public void tryShare(final Activity activity, String shareUrlKey, final String idName, final int id, final String description) {
|
|
|
try {
|
|
|
- CommonUtil.getInstance().initUrlConfigByNet(shareUrlKey, new Action1<String>() {
|
|
|
- @Override
|
|
|
- public void call(String find_share_url) {
|
|
|
- String url = String.format(Locale.CHINA, "%s?authorization=%s&%s=%d&invitation_code=%s", find_share_url, SpUtils.getToken(activity), idName, id, DataUtil.getInstance().getInvitationCode());
|
|
|
- new ShareLinkConfig().setLink(url).setDes(description).toShare(activity);
|
|
|
- }
|
|
|
+ CommonUtil.getInstance().initUrlConfigByNet(shareUrlKey, find_share_url -> {
|
|
|
+ String url = String.format(Locale.CHINA, "%s?authorization=%s&%s=%d&invitation_code=%s", find_share_url, SpUtils.getToken(activity), idName, id, DataUtil.getInstance().getInvitationCode());
|
|
|
+ new ShareLinkConfig().setLink(url).setDes(description).toShare(activity);
|
|
|
});
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
@@ -2200,7 +2223,7 @@ public class Jump2View {
|
|
|
}
|
|
|
switch (item.getType()) {//类型 1:游戏 2:咨询 3:转跳 4:任务 5:栏目
|
|
|
case 1:
|
|
|
- Jump2View.getInstance().goFindGame(item);
|
|
|
+ Jump2View.getInstance().goEntity(item);
|
|
|
break;
|
|
|
case 2:
|
|
|
Jump2View.getInstance().goFindInformation(context, item);
|
|
|
@@ -2765,7 +2788,7 @@ public class Jump2View {
|
|
|
if (item.isGameGroup()) {
|
|
|
goActGameGroupDetail(item.getGame_group());
|
|
|
} else {
|
|
|
- goFindGame(item.getApplications());
|
|
|
+ goEntity(item.getApplications());
|
|
|
}
|
|
|
}
|
|
|
|