LiveHttpUtil com im 替换全部接口地址 为新的部分未找到的先未做处理

This commit is contained in:
ningwenqiang 2024-10-24 17:06:01 +08:00
parent 558c1c0d5a
commit c6fc4a5884
3 changed files with 82 additions and 104 deletions

View File

@ -176,7 +176,7 @@ public class CommonHttpUtil {
}
Log.i("来了", lang);
//或者仅仅使用 locale = Locale.getDefault(); 不需要考虑接口 deprecated(弃用)问题
HttpClient.getInstance().get("Home.getConfig", CommonHttpConsts.GET_CONFIG)
HttpClient.getInstance().get("ylahuoquzhuyepeizhixinxi", CommonHttpConsts.GET_CONFIG)
.params("langue", lang)
.params("version", "" + VersionUtil.getVersion())
.params("from", "android")
@ -243,7 +243,7 @@ public class CommonHttpUtil {
}
} catch (Exception e) {
e.printStackTrace();
String error = "info[0]:" + info[0] + "\n\n\n" + "Exception:" + e.getClass() + "---message--->" + e.getMessage();
String error = "info[0]:" + info[0] + "\n\n" + "Exception:" + e.getClass() + "---message--->" + e.getMessage();
ErrorActivity.forward("GetConfig接口返回数据异常", error);
}
} else if (code == 1000) {
@ -313,7 +313,7 @@ public class CommonHttpUtil {
ToastUtil.show(WordUtil.getString(R.string.cannot_follow_self));
return;
}
HttpClient.getInstance().get("User.setAttents", tag)
HttpClient.getInstance().get("ylashezhiguanzhu", tag)
.params("touid", touid)
.execute(new HttpCallback() {
@Override
@ -347,7 +347,7 @@ public class CommonHttpUtil {
} else {
isGoogle = "-1";
}
HttpClient.getInstance().get("User.getBalance", CommonHttpConsts.GET_BALANCE)
HttpClient.getInstance().get("ylahuoquwodezuanshi", CommonHttpConsts.GET_BALANCE)
.params("type", 0)
.params("isGooglePay", isGoogle)
.execute(callback);
@ -404,7 +404,7 @@ public class CommonHttpUtil {
* 检查token是否失效
*/
public static void checkTokenInvalid() {
HttpClient.getInstance().get("User.ifToken", CommonHttpConsts.CHECK_TOKEN_INVALID)
HttpClient.getInstance().get("ylashezhijiaoyouzhaopianzhuangtai", CommonHttpConsts.CHECK_TOKEN_INVALID)
.execute(NO_CALLBACK);
}
@ -430,7 +430,7 @@ public class CommonHttpUtil {
}
public static void Google_sec_pay(String purchaseToken, String orderNo, String tradeNo, HttpCallback callback) {
HttpClient.getInstance().get("Charge.Google_sec_pay", "Charge.Google_sec_pay")
HttpClient.getInstance().get("ylagugedingdanyanzheng", "Charge.Google_sec_pay")
.params("purchaseToken", purchaseToken)
.params("orderno", orderNo)
.params("trade_no", tradeNo)
@ -483,7 +483,7 @@ public class CommonHttpUtil {
* 用户个人主页信息
*/
public static void getUserBaseinfo(String touid, HttpCallback callback) {
HttpClient.getInstance().get("User.getUserBaseinfo", CommonHttpConsts.GET_USER_BASEINFO)
HttpClient.getInstance().get("ylahuoquyonghujichuxinxi", CommonHttpConsts.GET_USER_BASEINFO)
.params("touid", touid)
.execute(callback);
} /**
@ -494,21 +494,14 @@ public class CommonHttpUtil {
if(StringUtil.isEmpty(uid)){
uid="NotLogin_"+ DeviceUtils.getUniqueDeviceId();
}
HttpClient.getInstance().get("Pdluserhome.getQiNiuToken3", "Pdluserhome.getQiNiuToken3")
HttpClient.getInstance().get("ylahuoquqiniushangchuanlingpaiv3", "Pdluserhome.getQiNiuToken3")
.params("uid",uid)
.params("token", CommonAppConfig.getInstance().getToken())
.params("file_name", fileName)
.params("ext", ".zip")
.execute(callback);
}
//
// //埋点唯一性
// public static void setAdvertisingChannels(String operation, HttpCallback callback) {
// HttpClient.getInstance().get("Tx.setAdvertisingChannels", CommonHttpConsts.GET_USER_BASEINFO)
// .params("operation", operation)
// .params("marking", Adjust.getAdid())
// .execute(callback);
// }
/**
* 发送动态
@ -537,7 +530,7 @@ public class CommonHttpUtil {
* @param callback
*/
public static void getCommunityHotList(int p, HttpCallback callback) {
HttpClient.getInstance().get("Pdlcommunity.getHotDynamicList", "Pdlcommunity.getHotDynamicList")
HttpClient.getInstance().get("ylaphuoquremendongtai", "Pdlcommunity.getHotDynamicList")
.params("p", p)
.execute(callback);
}
@ -548,7 +541,7 @@ public class CommonHttpUtil {
* @param callback
*/
public static void getCommunityComment(String dynamic_id, String dynamic_uid, int p, HttpCallback callback) {
HttpClient.getInstance().get("Pdlcommunity.getDynamicCommentList", "Pdlcommunity.getDynamicCommentList")
HttpClient.getInstance().get("ylaphuoqudongtaipinglunliebiao", "Pdlcommunity.getDynamicCommentList")
.params("dynamic_id", dynamic_id)
.params("dynamic_uid", dynamic_uid)
.params("p", p)
@ -561,7 +554,7 @@ public class CommonHttpUtil {
* @param callback
*/
public static void dynamicLove(String dynamic_id, HttpCallback callback) {
HttpClient.getInstance().get("Pdlcommunity.dynamicLove", "Pdlcommunity.dynamicLove")
HttpClient.getInstance().get("ylaphuoqudongtaidianzan", "Pdlcommunity.dynamicLove")
.params("dynamic_id", dynamic_id)
.execute(callback);
}
@ -583,7 +576,7 @@ public class CommonHttpUtil {
* 获取动态-发现
*/
public static void getCommunityFind(int p, HttpCallback callback) {
HttpClient.getInstance().get("Pdlcommunity.getFindDynamicList", "Pdlcommunity.getFindDynamicList")
HttpClient.getInstance().get("ylapfabudongtaipinglun", "Pdlcommunity.getFindDynamicList")
.params("p", p)
.execute(callback);
}
@ -592,7 +585,7 @@ public class CommonHttpUtil {
* 获取动态-关注
*/
public static void getCommunityFollow(int p, HttpCallback callback) {
HttpClient.getInstance().get("Pdlcommunity.getAttentionDynamicList", "Pdlcommunity.getAttentionDynamicList")
HttpClient.getInstance().get("ylaphuoquguanzhudongtai", "Pdlcommunity.getAttentionDynamicList")
.params("p", p)
.execute(callback);
}
@ -601,19 +594,19 @@ public class CommonHttpUtil {
* 获取动态-分类
*/
public static void getTag(HttpCallback callback) {
HttpClient.getInstance().get("Pdlcommunity.getHotTalk", "Pdlcommunity.getHotTalk")
HttpClient.getInstance().get("ylahuoquzuixinhuati", "Pdlcommunity.getHotTalk")
.execute(callback);
}
public static void getTalkHotDynamicList(int talkId, int p, HttpCallback callback) {
HttpClient.getInstance().get("Pdlcommunity.getTalkHotDynamicList", "Pdlcommunity.getTalkHotDynamicList")
HttpClient.getInstance().get("ylaphuoquremenhuatidongtai", "Pdlcommunity.getTalkHotDynamicList")
.params("talk_id", talkId)
.params("p", p)
.execute(callback);
}
public static void getOtherDynamicList(String toUid, HttpCallback callback) {
HttpClient.getInstance().get("Pdlcommunity.getOtherDynamicList", "Pdlcommunity.getOtherDynamicList")
HttpClient.getInstance().get("ylaphuoquqitadongtai", "Pdlcommunity.getOtherDynamicList")
.params("tuid", toUid)
.execute(callback);
}
@ -622,7 +615,7 @@ public class CommonHttpUtil {
* 动态-评论-删除
*/
public static void delCom(String comment_id, HttpCallback callback) {
HttpClient.getInstance().get("Pdlcommunity.delComment", "Pdlcommunity.delComment")
HttpClient.getInstance().get("ylapshanchuzijidongtaizijipinglun", "Pdlcommunity.delComment")
.params("comment_id", comment_id)
.execute(callback);
}
@ -631,7 +624,7 @@ public class CommonHttpUtil {
* 动态-不感兴趣
*/
public static void noInterest(String uid, HttpCallback callback) {
HttpClient.getInstance().get("Pdluser.setBlack", "User.setBlack")
HttpClient.getInstance().get("ylaquxiaolahei", "User.setBlack")
.params("touid", uid)
.execute(callback);
}
@ -640,7 +633,7 @@ public class CommonHttpUtil {
* 用户主页-用户数据
*/
public static void getUserInfoTop(String uid, HttpCallback callback) {
HttpClient.getInstance().get("Pdluserhome.getUserHomeTopInfo", "Pdluserhome.getUserHomeTopInfo")
HttpClient.getInstance().get("ylahuoqugerenzhuyetoubuxinxi", "Pdluserhome.getUserHomeTopInfo")
.params("select_uid", uid)
.execute(callback);
}
@ -649,7 +642,7 @@ public class CommonHttpUtil {
* 上传文件 获取七牛云token的接口
*/
public static void getUploadQiNiuToken(HttpCallback callback, boolean isImg) {
HttpClient.getInstance().get("Pdluserhome.getQiNiuToken", "Pdluserhome.getQiNiuToken")
HttpClient.getInstance().get("ylahuoquqiniushangchuanlingpai", "Pdluserhome.getQiNiuToken")
.params("uid", CommonAppConfig.getInstance().getUid())
.params("token", CommonAppConfig.getInstance().getToken())
.params("ext", isImg ? ".jpeg" : ".mp4")
@ -659,7 +652,7 @@ public class CommonHttpUtil {
* 上传文件 获取七牛云token的接口
*/
public static void getUploadQiNiuTokenNew(HttpCallback callback, boolean isImg) {
HttpClient.getInstance().get("Pdluserhome.getQiNiuToken2", "Pdluserhome.getQiNiuToken2")
HttpClient.getInstance().get("ylahuoquqiniushangchuanlingpaiv2", "Pdluserhome.getQiNiuToken2")
.params("uid", CommonAppConfig.getInstance().getUid())
.params("token", CommonAppConfig.getInstance().getToken())
.params("ext", isImg ? ".jpeg" : ".mp4")
@ -669,7 +662,7 @@ public class CommonHttpUtil {
* 修改用户背景墙
*/
public static void uploadUserInfoImg(String imgs, HttpCallback callback) {
HttpClient.getInstance().post("Pdluserhome.saveUserHomeBanner", "Userhome.saveUserHomeBanner")
HttpClient.getInstance().post("ylabaocungerenzhuyebanner", "Userhome.saveUserHomeBanner")
.params("home_banner_url_ary", imgs)
.execute(callback);
}
@ -678,7 +671,7 @@ public class CommonHttpUtil {
* 动态-删除
*/
public static void delActive(String dynamic_id, HttpCallback callback) {
HttpClient.getInstance().get("Pdlcommunity.delDynamic", "Pdlcommunity.delDynamic")
HttpClient.getInstance().get("ylapyonghushanchudongtai", "Pdlcommunity.delDynamic")
.params("dynamic_id", dynamic_id)
.execute(callback);
}
@ -687,7 +680,7 @@ public class CommonHttpUtil {
* 获取打招呼推荐列表
*/
public static void getMainMsgRecommend(HttpCallback callback) {
HttpClient.getInstance().get("Pdluser.getRecommendUser", "Pdluser.getRecommendUser")
HttpClient.getInstance().get("ylazhubotuijianye", "Pdluser.getRecommendUser")
.execute(callback);
}
@ -697,13 +690,13 @@ public class CommonHttpUtil {
* @param callback
*/
public static void sayHi(String toUid,HttpCallback callback) {
HttpClient.getInstance().get("Pdluser.liveCall", "Pdluser.liveCall")
HttpClient.getInstance().get("ylazhubodazhaohu", "Pdluser.liveCall")
.params("target_uid",toUid)
.params("behavior_type","5")
.execute(callback);
}
public static void sayHi(String toUid,String type,HttpCallback callback) {
HttpClient.getInstance().get("Pdluser.liveCall", "Pdluser.liveCall")
HttpClient.getInstance().get("ylazhubodazhaohu", "Pdluser.liveCall")
.params("target_uid",toUid)
.params("behavior_type",type)
.execute(callback);
@ -715,7 +708,7 @@ public class CommonHttpUtil {
* @param callback
*/
public static void getUserOnline(String toUid,HttpCallback callback) {
HttpClient.getInstance().get("Pdluser.getUserOnline", "Pdluser.getUserOnline")
HttpClient.getInstance().get("ylahuoquyonghuzaixianzhuangtai", "Pdluser.getUserOnline")
.params("uids",toUid)
.execute(callback);
}

View File

@ -60,7 +60,7 @@ public class LiveHttpUtil {
* 获取当前直播间的连麦用户列表
*/
public static void getMicList(String liveuid, int p, HttpCallback callback) {
HttpClient.getInstance().get("ylahuoqulianmaizhuangtai", "Live.getDrLm")
HttpClient.getInstance().get("ylahuoqulianmaizhuangtai", "huoqulianmaizhuangtai")
.params("uid", liveuid, true)
.execute(callback);
}
@ -69,7 +69,7 @@ public class LiveHttpUtil {
* 获取活动列表
*/
public static void getHDList(HttpCallback callback) {
HttpClient.getInstance().get("ylahuoquhuodongliebiao", "Active.getActiveList")
HttpClient.getInstance().get("ylahuoquhuodongliebiao", "huoquhuodongliebiao")
.execute(callback);
}
@ -352,9 +352,8 @@ public class LiveHttpUtil {
.params("p", p)
.execute(callback);
}
public static void getContactMsg(int page, HttpCallback callback) {
HttpClient.getInstance().get("ylahuoqulianxifangshixiaoxi", "getContactMsg")
HttpClient.getInstance().get("ylahuoqulianxifangshixiaoxi", "huoqulianxifangshixiaoxi")
.params("p", page)
.execute(callback);
}
@ -409,7 +408,7 @@ public class LiveHttpUtil {
* 连麦pk检查对方主播在线状态
*/
public static void livePkCheckLive(String liveUid, String stream, String uidStream, HttpCallback callback) {
HttpClient.getInstance().get("ylahuoqupkzhuangtai", "Home.getisPk")
HttpClient.getInstance().get("ylahuoqupkzhuangtai", "huoqupkzhuangtai")
.params("uid", liveUid, true)
// .params("token", CommonAppConfig.getInstance().getToken())
// .params("liveuid", liveUid)
@ -420,7 +419,6 @@ public class LiveHttpUtil {
/**
* 直播间发红包
* TODO 这个没找到
*/
public static void sendRedPack(String stream, String coin, String count, String title, int type, int sendType, HttpCallback callback) {
HttpClient.getInstance().get("Red.SendRed", LiveHttpConsts.SEND_RED_PACK)
@ -491,7 +489,7 @@ public class LiveHttpUtil {
* @param stream 主播的stream
*/
public static void checkLive(String liveUid, String stream, HttpCallback callback) {
HttpClient.getInstance().get("ylajiancefangjiangzhuangtai", LiveHttpConsts.CHECK_LIVE)
HttpClient.getInstance().get("ylajianchazhibo", LiveHttpConsts.CHECK_LIVE)
.params("liveuid", liveUid)
.params("stream", stream)
.execute(callback);
@ -509,31 +507,11 @@ public class LiveHttpUtil {
.execute(callback);
}
/**
* 观众进入直播间后还要请求一次
*/
public static void enterBackRoom(String liveUid, String stream, HttpCallback callback) {
HttpClient.getInstance().get("ylaxinbanyonghujiarufangjian", "Tx.userjoinroom")
.params("GroupId", "g" + liveUid)
.params("stream", stream)
.execute(callback);
}
/**
* 观众退出直播间后还要请求一次
*/
public static void qBackRoom(String liveUid, String stream, HttpCallback callback) {
HttpClient.getInstance().get("Tx.leave_room", "Tx.leave_room")
.params("GroupId", "g" + liveUid)
.params("stream", stream)
.execute(callback);
}
/**
* 获取礼物列表同时会返回剩余的钱
*/
public static void getGiftList(HttpCallback callback) {
HttpClient.getInstance().get("ylazhibojianliwuxinxi", LiveHttpConsts.GET_GIFT_LIST)
HttpClient.getInstance().get("Live.getGiftList", LiveHttpConsts.GET_GIFT_LIST)
.execute(callback);
}
@ -572,7 +550,7 @@ public class LiveHttpUtil {
* 用户获取主播的心愿单列表
*/
public static void getWishList(String liveId, HttpCallback callback) {
HttpClient.getInstance().get("ylahuoquxinyuandanpeizhi", LiveHttpConsts.GET_WISH_LIST)
HttpClient.getInstance().get("ylahuoquxinyuandan", LiveHttpConsts.GET_WISH_LIST)
.params("uid", liveId, true)
.execute(callback);
}
@ -583,7 +561,7 @@ public class LiveHttpUtil {
* @param callback
*/
public static void getFrontTask(HttpCallback callback) {
HttpClient.getInstance().get("ylahuoquxinshouyindaozhuangtai", "User.getFrontTask")
HttpClient.getInstance().get("ylahuoquxinshouyindaozhuangtai", "huoquxinshouyindaozhuangtai")
.execute(callback);
}
@ -593,7 +571,7 @@ public class LiveHttpUtil {
* @param callback
*/
public static void getFrontTask(String Token, String uid, HttpCallback callback) {
HttpClient.getInstance().get("ylahuoquxinshouyindaozhuangtai", "User.getFrontTask")
HttpClient.getInstance().get("ylahuoquxinshouyindaozhuangtai", "huoquxinshouyindaozhuangtai")
.params("token", Token, true)
.params("uid", uid, true)
.execute(callback);
@ -603,7 +581,7 @@ public class LiveHttpUtil {
* 完成新手任務
*/
public static void setFrontTask(String type, HttpCallback callback) {
HttpClient.getInstance().get("ylahuoquxinshouyindaozhuangtai", "User.setFrontTask")
HttpClient.getInstance().get("ylashezhixinshouyindaozhuangtai", "shezhixinshouyindaozhuangtai")
.params("type", type)
.execute(callback);
}
@ -612,7 +590,7 @@ public class LiveHttpUtil {
* 完成新手任務
*/
public static void setFrontTask(String type, String liveuid, HttpCallback callback) {
HttpClient.getInstance().get("ylashezhixinshouyindaozhuangtai", "User.setFrontTask")
HttpClient.getInstance().get("ylashezhixinshouyindaozhuangtai", "shezhixinshouyindaozhuangtai")
.params("type", type)
.params("liveuid", liveuid)
.execute(callback);
@ -622,7 +600,7 @@ public class LiveHttpUtil {
* 修改心愿单列表
*/
public static void modifyWishList(String list, HttpCallback callback) {
HttpClient.getInstance().get("ylapcduanshezhixinyuandan", LiveHttpConsts.SET_WISH_LIST)
HttpClient.getInstance().get("ylashezhixinyuandan", LiveHttpConsts.SET_WISH_LIST)
.params("list", list)
.execute(callback);
}
@ -655,7 +633,6 @@ public class LiveHttpUtil {
.params("appVersion", CommonAppConfig.getInstance().getVersion())
.execute(callback);
}
/**
* 观众给主播送礼物 - 包裹
*
@ -673,7 +650,6 @@ public class LiveHttpUtil {
.params("appVersion", CommonAppConfig.getInstance().getVersion())
.execute(callback);
}
/**
* 观众给主播送礼物 - 粉丝团
*
@ -691,7 +667,6 @@ public class LiveHttpUtil {
.params("appVersion", CommonAppConfig.getInstance().getVersion())
.execute(callback);
}
public static void sendBlindBoxTicket(String by, String liveUid, String stream, int giftId, HttpCallback callback) {
HttpClient.getInstance().get("ylamangheshiyongquan", LiveHttpConsts.SEND_GIFT)
.params("liveuid", liveUid)
@ -722,7 +697,7 @@ public class LiveHttpUtil {
* 点亮發IM
*/
public static void sendZAN(String liveUid, HttpCallback callback) {
HttpClient.getInstance().get("ylashuangjidianliang", "Fans.DoubleClickLight")
HttpClient.getInstance().get("ylashuangjidianliang", "shuangjidianliang")
.params("liveuid", liveUid)
.execute(callback);
}
@ -798,7 +773,7 @@ public class LiveHttpUtil {
* 修改直播状态
*/
public static void changeLive(String stream) {
HttpClient.getInstance().get("ylaxiugaizhiboleixing", LiveHttpConsts.CHANGE_LIVE)
HttpClient.getInstance().get("ylaxiugaizhibozhuangtai", LiveHttpConsts.CHANGE_LIVE)
.params("stream", stream)
.params("status", "1")
.execute(new HttpCallback() {
@ -827,7 +802,7 @@ public class LiveHttpUtil {
}
public static void getisRong(HttpCallback callback) {
HttpClient.getInstance().get("ylashifouweirongyunzhubo", "Live.isRong")
HttpClient.getInstance().get("ylashifouweirongyunzhubo", "shifouweirongyunzhubo")
.execute(callback);
}
@ -836,7 +811,7 @@ public class LiveHttpUtil {
* @param callback
*/
public static void getIsSw(HttpCallback callback) {
HttpClient.getInstance().get("ylashezhiyuanshengduanshengwangpeizhi", "Tx.setRtcFirm")
HttpClient.getInstance().get("ylashezhiyuanshengduanshengwangpeizhi", "shezhiyuanshengduanshengwangpeizhi")
.execute(callback);
}
@ -916,7 +891,7 @@ public class LiveHttpUtil {
*/
public static void getHczGiftList(HttpCallback callback) {
HttpClient.getInstance().get("ylayuxiazai", "Home.aoto_load")
HttpClient.getInstance().get("ylayuxiazai", "yuxiazai")
.execute(callback);
}
@ -934,14 +909,6 @@ public class LiveHttpUtil {
.params("anchorUid", anchor_id)
.execute(callback);
}
/**
* 重置活动
*/
public static void setEvent(String anchor_id, HttpCallback callback) {
HttpClient.getInstance().get("Rank.crystalTimeEnd", LiveHttpConsts.GET_EVENT)
.params("anchor_id", anchor_id)
.execute(callback);
}
/**
* 整蛊转盘拯救主播
@ -1002,7 +969,7 @@ public class LiveHttpUtil {
* 获取用户贵族喇叭的数量
*/
public static void getNobleTrumpetNum(HttpCallback callback) {
HttpClient.getInstance().get("ylahuoquguizulabashuliang", "getNobleTrumpetNum")
HttpClient.getInstance().get("ylahuoquguizulabashuliang", "huoquguizulabashuliang")
.execute(callback);
}
@ -1010,7 +977,7 @@ public class LiveHttpUtil {
* 获取用户贵族喇叭的数量
*/
public static void nobleUseTrumpet(String trumpet_msg, String anchor_id, HttpCallback callback) {
HttpClient.getInstance().get("ylaguizushiyonglaba", "nobleUseTrumpet")
HttpClient.getInstance().get("ylaguizushiyonglaba", "guizushiyonglaba")
.params("", trumpet_msg)
.params("", anchor_id)
.execute(callback);
@ -1020,7 +987,7 @@ public class LiveHttpUtil {
* 获取用户贵族喇叭的数量
*/
public static void getStarChallengeStatus(String liveUid, HttpCallback callback) {
HttpClient.getInstance().get("ylahuoquxingjitiaozhanzhuangtai", "StarChallengeStatus")
HttpClient.getInstance().get("ylahuoquxingjitiaozhanzhuangtai", "huoquxingjitiaozhanzhuangtai")
.params("liveUid", liveUid)
.execute(callback);
}
@ -1029,14 +996,14 @@ public class LiveHttpUtil {
* 首页关注直播
*/
public static void getHomeFollow(int p, HttpCallback callback) {
HttpClient.getInstance().get("ylahuoquguanzhuzhuboliebiao", "Home.getFollow")
HttpClient.getInstance().get("ylahuoquguanzhuzhuboliebiao", "huoquguanzhuzhuboliebiao")
.params("p", p)
.execute(callback);
}
public static void getRoomList(String sudGameId, String threshold, String roomHolderType, String liveUid, String currencyType, int page, HttpCallback callback) {
HttpClient.getInstance().get("ylahuoquyouxiliebiao", "Sudgameserver.getRoomList")
HttpClient.getInstance().get("ylahuoquyouxiliebiao", "huoquyouxiliebiao")
.params("sud_game_id", sudGameId)
.params("threshold", threshold)
.params("room_holder_type", roomHolderType)
@ -1056,7 +1023,7 @@ public class LiveHttpUtil {
* @param callback
*/
public static void gameRecord(String sudGameId, String currencyType, String dateType, int page, HttpCallback callback) {
HttpClient.getInstance().get("ylachaxunyouxijilu", "Sudgameserver.gameRecord")
HttpClient.getInstance().get("ylachaxunyouxijilu", "chaxunyouxijilu")
.params("sud_game_id", sudGameId)
.params("currency_type", currencyType)
.params("date_type", dateType)
@ -1068,8 +1035,9 @@ public class LiveHttpUtil {
* 获取短剧Url
*/
public static void getCoolydrama(HttpCallback callback){
HttpClient.getInstance().get("yladuanjuzhanghaozhuce", "Home.getFollow")
HttpClient.getInstance().get("yladuanjuzhanghaozhuce", "duanjuzhanghaozhuce")
.params("lang", WordUtil.isNewZh()?"zh_CN":"en")
.execute(callback);
}
}

View File

@ -21,7 +21,7 @@ public class ImHttpUtil {
* 私信聊天页面用于获取用户信息
*/
public static void getImUserInfo(String uids, HttpCallback callback) {
HttpClient.getInstance().get("Message.getLists", ImHttpConsts.GET_IM_USER_INFO)
HttpClient.getInstance().get("ylahuoquxitongxiaoxiliebiaov2", ImHttpConsts.GET_IM_USER_INFO)
.execute(callback);
}
@ -29,7 +29,7 @@ public class ImHttpUtil {
* 互动消息回复
*/
public static void sendDynamicComment(String dynamic_id, String content, String to_comment_id, HttpCallback callback) {
HttpClient.getInstance().get("Community.sendDynamicComment", ImHttpConsts.SEND_DYNAMICCOMMENT)
HttpClient.getInstance().get("ylafabudongtaipinglun", ImHttpConsts.SEND_DYNAMICCOMMENT)
.params("dynamic_id", dynamic_id)
.params("content", content)
.params("to_comment_id", to_comment_id)
@ -40,7 +40,7 @@ public class ImHttpUtil {
* 获取系统消息列表
*/
public static void getSystemMessageList(String type, int p, HttpCallback callback) {
HttpClient.getInstance().get("Message.getListInfo", ImHttpConsts.GET_SYSTEM_MESSAGE_LIST)
HttpClient.getInstance().get("ylahuoquxitongxiaoxixiangqing", ImHttpConsts.GET_SYSTEM_MESSAGE_LIST)
.params("p", p)
.params("type", type)
.execute(callback);
@ -50,7 +50,7 @@ public class ImHttpUtil {
* 猜你喜欢
*/
public static void getCommunityList(int p, HttpCallback callback) {
HttpClient.getInstance().get("Community.guessYouLike", ImHttpConsts.GET_COMMUNITYLIST_LIST)
HttpClient.getInstance().get("ylacainixihuandongtailiebiao", ImHttpConsts.GET_COMMUNITYLIST_LIST)
.params("p", p)
.execute(callback);
}
@ -60,7 +60,7 @@ public class ImHttpUtil {
* 判断自己有没有被对方拉黑聊天的时候用到
*/
public static void checkBlack(String touid, HttpCallback callback) {
HttpClient.getInstance().get("User.checkBlack", ImHttpConsts.CHECK_BLACK)
HttpClient.getInstance().get("ylajiancelaheizhuangtai", ImHttpConsts.CHECK_BLACK)
.params("touid", touid)
.execute(callback);
}
@ -69,7 +69,7 @@ public class ImHttpUtil {
* 拉黑对方 解除拉黑
*/
public static void setBlack(String touid, HttpCallback callback) {
HttpClient.getInstance().get("User.setBlack", ImHttpConsts.SET_BLACK)
HttpClient.getInstance().get("ylashezhilaheizhuangtai", ImHttpConsts.SET_BLACK)
.params("touid", touid)
.execute(callback);
}
@ -79,7 +79,7 @@ public class ImHttpUtil {
* 获取补偿消息详情
*/
public static void getMessageGiftInfo(String msgid, HttpCallback callback) {
HttpClient.getInstance().get("Message.getMessageGiftInfo", ImHttpConsts.GET_MESSAGEGIFTINFO)
HttpClient.getInstance().get("ylachakanxiaoxilibanxiangqing", ImHttpConsts.GET_MESSAGEGIFTINFO)
.params("message_id", msgid)
.execute(callback);
}
@ -88,7 +88,7 @@ public class ImHttpUtil {
* 删除系统消息
*/
public static void delMsg(String msgid, HttpCallback callback) {
HttpClient.getInstance().get("Message.deleteSystemMessage", ImHttpConsts.GET_MESSAGEGIFTINFO)
HttpClient.getInstance().get("ylashanchuxitongxiaoxi", ImHttpConsts.GET_MESSAGEGIFTINFO)
.params("message_id", msgid)
.execute(callback);
}
@ -97,7 +97,7 @@ public class ImHttpUtil {
* 已读 系统消息
*/
public static void readMsg(String msgid, HttpCallback callback) {
HttpClient.getInstance().get("Message.systemMessageRead", ImHttpConsts.GET_MESSAGEGIFTINFO)
HttpClient.getInstance().get("ylaxitongxiaoxiyiduzhuangtai", ImHttpConsts.GET_MESSAGEGIFTINFO)
.params("message_id", msgid)
.execute(callback);
}
@ -106,8 +106,25 @@ public class ImHttpUtil {
* 领取礼物
*/
public static void receiveGift(String msgid, HttpCallback callback) {
HttpClient.getInstance().get("Message.getMessageGiftDetails", ImHttpConsts.GET_MESSAGEGIFTINFO)
HttpClient.getInstance().get("ylalingquxitongxiaoxilibao", ImHttpConsts.GET_MESSAGEGIFTINFO)
.params("message_id", msgid)
.execute(callback);
}
/**
* 处罚通知是否有未读消息
*/
public static void getPenalizeStatus(HttpCallback callback) {
HttpClient.getInstance().get("ylajianchaweiduchufanxiaoxi", "jianchaweiduchufanxiaoxi")
.execute(callback);
}
/**
* 处罚通知列表
*/
public static void getPenalizeList(int p, HttpCallback callback) {
HttpClient.getInstance().get("ylachufantongzhiliebiao", "chufantongzhiliebiao")
.params("p", p)
.execute(callback);
}
}