| | |
| | | import com.tencent.mm.opensdk.openapi.WXAPIFactory; |
| | | import com.weikou.beibeivideo.BeibeiVideoApplication; |
| | | import com.weikou.beibeivideo.entity.JumpDetail; |
| | | import com.weikou.beibeivideo.entity.VideoType; |
| | | import com.weikou.beibeivideo.entity.ad.RewardVideoAdContainer; |
| | | import com.weikou.beibeivideo.ui.category.MVideosActivity; |
| | | import com.weikou.beibeivideo.ui.dialog.LoadingDialogUtil; |
| | | import com.weikou.beibeivideo.ui.login.LoginActivity; |
| | | import com.weikou.beibeivideo.ui.mine.BrowserActivity; |
| | |
| | | { |
| | | String webUrl = params.getString("url").toString(); |
| | | String title = params.getString("title"); |
| | | String close=params.getString("close"); |
| | | context.startActivity(new Intent(context, BrowserActivity.class).putExtra("url", webUrl).putExtra("title", title).putExtra("close",close)); |
| | | String close = params.getString("close"); |
| | | context.startActivity(new Intent(context, BrowserActivity.class).putExtra("url", webUrl).putExtra("title", title).putExtra("close", close)); |
| | | } |
| | | |
| | | |
| | |
| | | default: { |
| | | try { |
| | | Intent intent = new Intent(context, Class.forName(JumpActivityUtil.filterActivityName(detail.getActivity()))); |
| | | if (params != null) |
| | | for (Iterator<String> keys = params.keySet().iterator(); keys.hasNext(); ) { |
| | | String key = keys.next(); |
| | | intent.putExtra(key, params.getString(key)); |
| | | if (params != null) { |
| | | //特殊处理 |
| | | if (MVideosActivity.class.getName().equalsIgnoreCase(JumpActivityUtil.filterActivityName(detail.getActivity())) && !StringUtils.isEmpty(params.getString("Id"))) { |
| | | VideoType videoType = new VideoType(); |
| | | videoType.setId(params.getString("Id")); |
| | | videoType.setName(params.getString("Name")); |
| | | intent.putExtra("video_type", videoType); |
| | | } else { |
| | | for (Iterator<String> keys = params.keySet().iterator(); keys.hasNext(); ) { |
| | | String key = keys.next(); |
| | | intent.putExtra(key, params.getString(key)); |
| | | } |
| | | } |
| | | } |
| | | context.startActivity(intent); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |