|
|
@@ -27,82 +27,82 @@ import java.util.Locale;
|
|
|
*/
|
|
|
public class ApiKey {
|
|
|
//搜索热门推荐
|
|
|
- public static final String top_search_statistics = "app/top_search_statistics?platform=1";
|
|
|
+ public static final String top_search_statistics = "v1/apptop_search_statistics?platform=1";
|
|
|
//搜索热门
|
|
|
- public static final String hot_search_keywords = "app/search/keywords";
|
|
|
+ public static final String hot_search_keywords = "v1/appsearch/keywords";
|
|
|
//关于我们
|
|
|
- public static final String new_about_us = "app/about_us/new_about_us";
|
|
|
+ public static final String new_about_us = "v1/appabout_us/new_about_us";
|
|
|
//公告
|
|
|
- public static final String bulletin = "app/bulletin?page=1&per_page=10";
|
|
|
+ public static final String bulletin = "v1/appbulletin?page=1&per_page=10";
|
|
|
//轮播
|
|
|
- public static final String slideshow = "app/slideshow?platform=1";
|
|
|
+ public static final String slideshow = "v1/appslideshow?platform=1";
|
|
|
//home_list
|
|
|
- public static final String home_list = "app/home_list";
|
|
|
+ public static final String home_list = "v1/apphome_list";
|
|
|
//各种url配置
|
|
|
- public static final String url = "app/url/";
|
|
|
+ public static final String url = "v1/appurl/";
|
|
|
//用户信息
|
|
|
- public static final String get_info = "app/user/get_info/";
|
|
|
+ public static final String get_info = "v1/app/user/get_info/";
|
|
|
//award_detail
|
|
|
- public static final String award_detail = "app/user/award_detail?page=0&per_page=100";
|
|
|
+ public static final String award_detail = "v1/app/user/award_detail?page=0&per_page=100";
|
|
|
//游戏任务中的正在进行的任务
|
|
|
- public static final String run_game_task = "app/accepted_task/run_game_task";
|
|
|
+ public static final String run_game_task = "v1/app/accepted_task/run_game_task";
|
|
|
//游戏任务中的我的游戏
|
|
|
- public static final String my_games = "app/game_consumption/my_games?page=1&per_page=100";
|
|
|
+ public static final String my_games = "v1/app/game_consumption/my_games?page=1&per_page=100";
|
|
|
//首页获取所有发布的热门任务(试玩任务、游戏任务、连续任务)
|
|
|
- public static final String release_task = "app/release_task?page=1&per_page=100&platform=1&is_hot=1&is_recommend=0&about_to_begin=0&task_type=-1&is_succession=3";
|
|
|
+ public static final String release_task = "v1/app/release_task?page=1&per_page=100&platform=1&is_hot=1&is_recommend=0&about_to_begin=0&task_type=-1&is_succession=3";
|
|
|
//新手引导
|
|
|
- public static final String novice_guidance = "app/user/novice_guidance";
|
|
|
+ public static final String novice_guidance = "v1/app/user/novice_guidance";
|
|
|
//用户中心模块
|
|
|
- public static final String user_module = "app/user_module";
|
|
|
+ public static final String user_module = "v1/app/user_module";
|
|
|
//热门用户列表
|
|
|
- public static final String getGameUserUserFocusHotUser = "app/game_user/user_focus/hot_user";
|
|
|
+ public static final String getGameUserUserFocusHotUser = "v1/app/game_user/user_focus/hot_user";
|
|
|
//关注的用户列表
|
|
|
- public static final String getGameUserUserFocusList = "app/game_user/user_focus/list";
|
|
|
+ public static final String getGameUserUserFocusList = "v1/app/game_user/user_focus/list";
|
|
|
//关注的游戏列表
|
|
|
- public static final String getGameUserGameFocusList = "app/game_user/game_focus/list";
|
|
|
+ public static final String getGameUserGameFocusList = "v1/app/game_user/game_focus/list";
|
|
|
//足迹
|
|
|
- public static final String getUserFootPrintList = "app/user/footprint/list";
|
|
|
- public static final String getUserFootPrintDateCount = "app/user/footprint/date_count";
|
|
|
+ public static final String getUserFootPrintList = "v1/app/user/footprint/list";
|
|
|
+ public static final String getUserFootPrintDateCount = "v1/app/user/footprint/date_count";
|
|
|
//每日分享
|
|
|
- public static final String getShareList = "app/share/shares";
|
|
|
- public static final String sendShareResult = "app/share/share";
|
|
|
+ public static final String getShareList = "v1/app/share/shares";
|
|
|
+ public static final String sendShareResult = "v1/app/share/share";
|
|
|
//获取发布中视频列表
|
|
|
- public static final String getVideoList = "app/video/list";
|
|
|
+ public static final String getVideoList = "v1/app/video/list";
|
|
|
//查询音乐列表
|
|
|
- public static final String getVideoMusic = "app/video/music";
|
|
|
+ public static final String getVideoMusic = "v1/app/video/music";
|
|
|
//查询贴纸列表
|
|
|
- public static final String getVideoSticker = "app/video/sticker";
|
|
|
+ public static final String getVideoSticker = "v1/app/video/sticker";
|
|
|
//查询话题列表
|
|
|
- public static final String getVideoTopic = "app/video/topic";
|
|
|
+ public static final String getVideoTopic = "v1/app/video/topic";
|
|
|
//客户端插件更新/插件获取
|
|
|
- public static final String getPackageVersion = "app/version/package_version";
|
|
|
+ public static final String getPackageVersion = "v1/app/version/package_version";
|
|
|
//充值记录
|
|
|
- public static final String recharge_balance_log = "app/recharge/recharge_balance_log";
|
|
|
+ public static final String recharge_balance_log = "v1/app/recharge/recharge_balance_log";
|
|
|
//提现记录
|
|
|
- public static final String recharge_log = "app/user/recharge_log";
|
|
|
+ public static final String recharge_log = "v1/app/user/recharge_log";
|
|
|
//收支明细、消费记录
|
|
|
- public static final String withdraw = "app/withdraw";
|
|
|
+ public static final String withdraw = "v1/app/withdraw";
|
|
|
//消息中心列表
|
|
|
- public static final String system_notification = "app/message/system_notification/";
|
|
|
+ public static final String system_notification = "v1/app/message/system_notification/";
|
|
|
//获取我安装的游戏列表 3.4.9新增
|
|
|
- public static final String getMyGmeList = "app/game_consumption/my_games_v2";
|
|
|
+ public static final String getMyGmeList = "v1/app/game_consumption/my_games_v2";
|
|
|
//获取下载管理界面中的猜你喜欢 3.4.10新增
|
|
|
- public static final String getFindUserLike = "app/find/user_like";
|
|
|
+ public static final String getFindUserLike = "v1/app/find/user_like";
|
|
|
//获取 游戏排行榜列表 3.4.10新增
|
|
|
- public static final String getFindRank = "app/find/rank";
|
|
|
+ public static final String getFindRank = "v1/app/find/rank";
|
|
|
//获取 获取游戏组列表 3.4.10新增
|
|
|
- public static final String getGameGroup = "app/game_group";
|
|
|
+ public static final String getGameGroup = "v1/pp/game_group";
|
|
|
//获取 搜索游戏组列表 3.4.10新增
|
|
|
- public static final String getGameGroupSearch = "app/game_group/search";
|
|
|
+ public static final String getGameGroupSearch = "v1/app/game_group/search";
|
|
|
//获取限时抢购列表
|
|
|
- public static final String PROMOTE_GOODS = "app/yf_shop/promote_goods";
|
|
|
+ public static final String PROMOTE_GOODS = "v1/app/yf_shop/promote_goods";
|
|
|
//获取游戏列表
|
|
|
- public static final String FIND = "app/find";
|
|
|
+ public static final String FIND = "v1/app/find";
|
|
|
//获取全部福利
|
|
|
- public static final String GET_ALL_WELFARE = "app/release_task?platform=1&task_type=1019";
|
|
|
- public static final String GET_ALL_WELFARE_AND_MONEY_REWARD = "app/release_task?platform=1&task_type=1019,1020";
|
|
|
+ public static final String GET_ALL_WELFARE = "v1/app/release_task?platform=1&task_type=1019";
|
|
|
+ public static final String GET_ALL_WELFARE_AND_MONEY_REWARD = "v1/app/release_task?platform=1&task_type=1019,1020";
|
|
|
//获取我的福利
|
|
|
- public static final String GET_MY_WELFARE = "app/accepted_task?status=0&task_type=1019";
|
|
|
+ public static final String GET_MY_WELFARE = "v1/app/accepted_task?status=0&task_type=1019";
|
|
|
|
|
|
public static final String getPackageVersion(String package_name, String type, int version){
|
|
|
return String.format(Locale.CHINA, "%s?package_name=%s&type=%s&version=%d", getPackageVersion, package_name, type, version);
|
|
|
@@ -116,50 +116,50 @@ public class ApiKey {
|
|
|
|
|
|
public static String release_task(int page, int per_page, int about_to_begin, String task_type, int is_succession) {
|
|
|
task_type = task_type.replaceAll(",", "%2C");
|
|
|
- return String.format(Locale.CHINA, "app/release_task?page=%d&per_page=%d&platform=1&is_hot=0&is_recommend=0&about_to_begin=%d&task_type=%s&is_succession=%d", page, per_page, about_to_begin, task_type, is_succession);
|
|
|
+ return String.format(Locale.CHINA, "v1/app/release_task?page=%d&per_page=%d&platform=1&is_hot=0&is_recommend=0&about_to_begin=%d&task_type=%s&is_succession=%d", page, per_page, about_to_begin, task_type, is_succession);
|
|
|
}
|
|
|
|
|
|
//获取正在运行的任务(试玩任务、游戏任务、连续任务)
|
|
|
public static String new_run_task(int is_succession, int show_game_task) {
|
|
|
- return String.format(Locale.CHINA, "app/accepted_task/new_run_task/?is_succession=%d&show_game_task=%d", is_succession, show_game_task);
|
|
|
+ return String.format(Locale.CHINA, "v1/app/accepted_task/new_run_task/?is_succession=%d&show_game_task=%d", is_succession, show_game_task);
|
|
|
}
|
|
|
|
|
|
//发现模块标签列表
|
|
|
- public static final String articles_tags = "app/find/articles_tags/list";
|
|
|
+ public static final String articles_tags = "v1/app/find/articles_tags/list";
|
|
|
|
|
|
//发现模块发现列表
|
|
|
public static String articles(int page, int per_page, int tag_id) {
|
|
|
- return String.format(Locale.CHINA, "app/find/articles/list?page=%d&per_page=%d&tag_id=%d", page, per_page, tag_id);
|
|
|
+ return String.format(Locale.CHINA, "v1/appfind/articles/list?page=%d&per_page=%d&tag_id=%d", page, per_page, tag_id);
|
|
|
}
|
|
|
|
|
|
//发现模块资讯
|
|
|
public static String articlesItem(int id) {
|
|
|
- return "app/find/articles?id=" + id;
|
|
|
+ return "v1/app/find/articles?id=" + id;
|
|
|
}
|
|
|
|
|
|
//发现模块游戏或应用详情
|
|
|
public static String applications(int id) {
|
|
|
- return "app/find/applications?id=" + id;
|
|
|
+ return "v1/app/find/applications?id=" + id;
|
|
|
}
|
|
|
|
|
|
//发现模块游戏或应用详情中的分数
|
|
|
public static String score_num(int id) {
|
|
|
- return "app/find/applications/score_num?id=" + id;
|
|
|
+ return "v1/app/find/applications/score_num?id=" + id;
|
|
|
}
|
|
|
|
|
|
//发现模块游戏或应用详情中我的评分
|
|
|
public static String my_score(int id) {
|
|
|
- return "app/find/applications/my_score?id=" + id;
|
|
|
+ return "v1/app/find/applications/my_score?id=" + id;
|
|
|
}
|
|
|
|
|
|
//广告
|
|
|
public static String advertisements(int type) {
|
|
|
- return "app/advertising/advertisements?type=" + type;
|
|
|
+ return "v1/app/advertising/advertisements?type=" + type;
|
|
|
}
|
|
|
|
|
|
//获取任务详情
|
|
|
public static String releaseTaskDesc(int releaseTaskId) {
|
|
|
- return String.format(Locale.CHINA, "app/release_task/%d/desc", releaseTaskId);
|
|
|
+ return String.format(Locale.CHINA, "v1/app/release_task/%d/desc", releaseTaskId);
|
|
|
}
|
|
|
|
|
|
//获取任务详情
|
|
|
@@ -169,33 +169,33 @@ public class ApiKey {
|
|
|
|
|
|
//看点
|
|
|
public static String awakenApp() {
|
|
|
- return "app/awaken/article";
|
|
|
+ return "v1/app/awaken/article";
|
|
|
}
|
|
|
|
|
|
//看点
|
|
|
public static String awakenArticle(int page, int per_page) {
|
|
|
- return String.format(Locale.CHINA, "app/awaken/article?page=%d&per_page=%d", page, per_page);
|
|
|
+ return String.format(Locale.CHINA, "v1/app/awaken/article?page=%d&per_page=%d", page, per_page);
|
|
|
}
|
|
|
|
|
|
//发现模块游戏或应用详情
|
|
|
public static String playGameDetail(int id) {
|
|
|
- return "app/find/" + id;
|
|
|
+ return "v1/app/find/" + id;
|
|
|
}
|
|
|
|
|
|
- public static final String slideshowGame = "app/game_banner?platform=1";
|
|
|
- public static final String friend_count_and_award = "app/user/friend_count_and_award";
|
|
|
- public static final String MY_ASSETS = "app/user/my_assets";
|
|
|
- public static final String FRIEND_COUNT_AND_AWARD = "app/user/friend_count_and_award";
|
|
|
- public static final String CAN_RECEIVE_AWARD = "app/user/can_receive_award";
|
|
|
+ public static final String slideshowGame = "v1/app/game_banner?platform=1";
|
|
|
+ public static final String friend_count_and_award = "v1/app/user/friend_count_and_award";
|
|
|
+ public static final String MY_ASSETS = "v1/app/user/my_assets";
|
|
|
+ public static final String FRIEND_COUNT_AND_AWARD = "v1/app/user/friend_count_and_award";
|
|
|
+ public static final String CAN_RECEIVE_AWARD = "v1/app/user/can_receive_award";
|
|
|
|
|
|
public static String getGameUserDetail(int focus_user_id) {
|
|
|
- return "app/game_user/detail?focus_user_id=" + focus_user_id;
|
|
|
+ return "v1/app/game_user/detail?focus_user_id=" + focus_user_id;
|
|
|
}
|
|
|
public static String getGameUserLatelyGame(int focus_user_id) {
|
|
|
- return "app/game_user/lately_game?focus_user_id=" + focus_user_id;
|
|
|
+ return "v1/app/game_user/lately_game?focus_user_id=" + focus_user_id;
|
|
|
}
|
|
|
//根据任务名(游戏名)模糊搜索
|
|
|
public static String getTopSearchStatisticsHomePageSearch(String search_content){
|
|
|
- return String.format(Locale.CHINA, "app/top_search_statistics/home_page_search?search_content=%s", search_content);
|
|
|
+ return String.format(Locale.CHINA, "v1/app/top_search_statistics/home_page_search?search_content=%s", search_content);
|
|
|
}
|
|
|
}
|