所有请求的地址换成新的地址
This commit is contained in:
parent
c6fc4a5884
commit
e1b9e3348c
@ -514,7 +514,7 @@ public class CommonHttpUtil {
|
||||
* @param callback
|
||||
*/
|
||||
public static void pushCommunity(boolean isImgOrVideo, String content, String talkId, String fileAry, String videoUrl, String createAt, HttpCallback callback) {
|
||||
HttpClient.getInstance().post("Pdlcommunity.sendDynamic", CommonHttpConsts.GET_USER_BASEINFO)
|
||||
HttpClient.getInstance().post("ylapfabudongtai", CommonHttpConsts.GET_USER_BASEINFO)
|
||||
.params("img_or_video", isImgOrVideo ? 1 : 2)
|
||||
.params("content", content)
|
||||
.params("talk_id", talkId)
|
||||
|
@ -60,7 +60,7 @@ public class LiveHttpUtil {
|
||||
* 获取当前直播间的连麦用户列表
|
||||
*/
|
||||
public static void getMicList(String liveuid, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("ylahuoqulianmaizhuangtai", "huoqulianmaizhuangtai")
|
||||
HttpClient.getInstance().get("ylahuoqulianmaizhuangtai", "ylahuoqulianmaizhuangtai")
|
||||
.params("uid", liveuid, true)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -69,7 +69,7 @@ public class LiveHttpUtil {
|
||||
* 获取活动列表
|
||||
*/
|
||||
public static void getHDList(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("ylahuoquhuodongliebiao", "huoquhuodongliebiao")
|
||||
HttpClient.getInstance().get("ylahuoquhuodongliebiao", "ylahuoquhuodongliebiao")
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -457,7 +457,7 @@ public class IMLoginManager extends BaseCacheManager {
|
||||
private Runnable isInstructorRunnable = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
HttpClient.getInstance().get("User.isInstructor", "isInstructor")
|
||||
HttpClient.getInstance().get("ylashifouweituiguangzhanghao", "ylashifouweituiguangzhanghao\n")
|
||||
.params("uid", userInfo.getId(), true)
|
||||
.params("token", userInfo.getToken(), true)
|
||||
.execute(new HttpCallback() {
|
||||
@ -533,7 +533,7 @@ public class IMLoginManager extends BaseCacheManager {
|
||||
String uid = uidAndToken[0];
|
||||
String token = uidAndToken[1];
|
||||
if (TextUtils.isEmpty(token)) return;
|
||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
||||
HttpClient.getInstance().get("ylahuoquyonghujibenxinxiv2", "ylahuoquyonghujibenxinxiv2")
|
||||
.params("uid", uid)
|
||||
.params("token", token)
|
||||
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||
@ -555,7 +555,7 @@ public class IMLoginManager extends BaseCacheManager {
|
||||
}
|
||||
|
||||
public void updateUserCoin() {
|
||||
HttpClient.getInstance().get("User.getUserBalance", "User.getUserBalance")
|
||||
HttpClient.getInstance().get("ylachaxunyonghuyue", "ylachaxunyonghuyue")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
@ -573,7 +573,7 @@ public class IMLoginManager extends BaseCacheManager {
|
||||
}
|
||||
|
||||
public void updateUserCoin(OnItemClickListener<JSONObject> listener) {
|
||||
HttpClient.getInstance().get("User.getUserBalance", "User.getUserBalance")
|
||||
HttpClient.getInstance().get("ylachaxunyonghuyue", "ylachaxunyonghuyue")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
@ -124,7 +124,7 @@ public class InstructorRemarkManager extends BaseCacheManager {
|
||||
public void run() {
|
||||
IMLoginModel userInfo = IMLoginManager.get(context).getUserInfo();
|
||||
if(userInfo==null)return;
|
||||
HttpClient.getInstance().get("User.getInstructorRemark", "getInstructorRemark")
|
||||
HttpClient.getInstance().get("ylahuoqutuiguangbeizhumingliebiao", "ylahuoqutuiguangbeizhumingliebiao")
|
||||
.params("uid", userInfo.getId(), true)
|
||||
.params("token", userInfo.getToken(), true)
|
||||
.execute(new HttpCallback() {
|
||||
|
@ -116,7 +116,7 @@ public class NoviceInstructorManager extends BaseCacheManager {
|
||||
IMLoginModel userModel = new Gson().fromJson(model1.getExtra(), IMLoginModel.class);
|
||||
if (userModel != null && TextUtils.equals(userModel.getIsAdmin(), "1")) {
|
||||
IMLoginModel userInfo = IMLoginManager.get(context).getUserInfo();
|
||||
HttpClient.getInstance().get("Message.setZdyMsg", "setZdyMsg")
|
||||
HttpClient.getInstance().get("ylashezhizhidaoyuanxiaoxizhuangtai", "ylashezhizhidaoyuanxiaoxizhuangtai")
|
||||
.params("uid", userInfo.getId(), true)
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
|
@ -131,7 +131,7 @@ public class MessageIMManager {
|
||||
if (userInfo == null) {
|
||||
return;
|
||||
}
|
||||
HttpClient.getInstance().get("Message.getLists", "getImUserInfo")
|
||||
HttpClient.getInstance().get("ylahuoquxitongxiaoxiliebiaov2", "ylahuoquxitongxiaoxiliebiaov2")
|
||||
.params("uid", userInfo.getId())
|
||||
.params("token", userInfo.getToken())
|
||||
.execute(new HttpCallback() {
|
||||
@ -195,7 +195,7 @@ public class MessageIMManager {
|
||||
public void getSystemMessages(SystemMessagesHttpCallback callback) {
|
||||
systemNumber = 0;
|
||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||
HttpClient.getInstance().get("Message.getLists", "getImUserInfo")
|
||||
HttpClient.getInstance().get("ylahuoquxitongxiaoxiliebiaov2", "ylahuoquxitongxiaoxiliebiaov2")
|
||||
.params("uid", userInfo.getId())
|
||||
.params("token", userInfo.getToken())
|
||||
.execute(new HttpCallback() {
|
||||
|
@ -657,7 +657,7 @@ public class JavascriptInterfaceUtils {
|
||||
|
||||
@JavascriptInterface
|
||||
public void wearOrCancelFanMedal() {
|
||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
||||
HttpClient.getInstance().get("ylahuoquyonghujibenxinxiv2", "ylahuoquyonghujibenxinxiv2")
|
||||
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
||||
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
||||
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||
|
@ -104,7 +104,7 @@ public class MicStatusManager {
|
||||
* 断开连麦
|
||||
*/
|
||||
public void downMic() {
|
||||
HttpClient.getInstance().get("live.leaveDrLm", "live.leaveDrLm")
|
||||
HttpClient.getInstance().get("ylatuichuduorenlianmai", "ylatuichuduorenlianmai")
|
||||
.params("roomid", micLiveId)
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.execute(new HttpCallback() {
|
||||
|
@ -333,7 +333,7 @@ public class LiveFloatView implements Function1<FloatCallbacks.Builder, Unit> {
|
||||
private Runnable liveCheck = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
HttpClient.getInstance().get("Live.checkLive", "")
|
||||
HttpClient.getInstance().get("ylajiancefangjiangzhuangtai", "")
|
||||
.params("liveuid", mLiveBean.getUid())
|
||||
.params("stream", mLiveBean.getStream())
|
||||
.execute(new HttpCallback() {
|
||||
|
@ -232,7 +232,7 @@ public class LiveAnchorActivity extends LiveActivity implements LiveFunctionClic
|
||||
mLivePushViewHolder.leave.setVisibility(View.GONE);
|
||||
sendSystemMessage(mContext.getString(R.string.live_anchor_come_back));
|
||||
}
|
||||
HttpClient.getInstance().get("Live.isLeave", "Live.isLeave")
|
||||
HttpClient.getInstance().get("ylalikaizhibo", "ylalikaizhibo")
|
||||
.params("isleave", leave)
|
||||
.execute(new Callback<JsonBean>() {
|
||||
@Override
|
||||
|
@ -1242,7 +1242,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
||||
manager.micIngTypeTwo(event.getBean(), event.getLiveType(), event.getLiveTypeVal());
|
||||
} else {
|
||||
//获取房间连麦状态
|
||||
HttpClient.getInstance().get("live.getDrLm", "live.getDrLm").params("uid", mLiveUid, true).execute(new HttpCallback() {
|
||||
HttpClient.getInstance().get("ylahuoqulianmaizhuangtai", "ylahuoqulianmaizhuangtai").params("uid", mLiveUid, true).execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0) {
|
||||
|
@ -400,7 +400,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
// return;
|
||||
// }
|
||||
if (isDRPK != 1) {
|
||||
HttpClient.getInstance().get("live.getdrnum", "live.getdrnum")
|
||||
HttpClient.getInstance().get("ylahuoqushengyupkshu", "ylahuoqushengyupkshu")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
@ -414,7 +414,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
new DialogUitl.SimpleCallback2() {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
HttpClient.getInstance().get("live.createDRPKroom", "live.createDRPKroom")
|
||||
HttpClient.getInstance().get("ylachuangjianduorenpk", "ylachuangjianduorenpk")
|
||||
.params("type", "1")
|
||||
.params("sign", "1")
|
||||
.execute(new HttpCallback() {
|
||||
|
@ -394,7 +394,7 @@ public class LiveSwAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
// return;
|
||||
// }
|
||||
if (isDRPK != 1) {
|
||||
HttpClient.getInstance().get("live.getdrnum", "live.getdrnum")
|
||||
HttpClient.getInstance().get("ylahuoqushengyupkshu", "ylahuoqushengyupkshu")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
@ -411,7 +411,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
||||
* 设置贵族状态
|
||||
*/
|
||||
private void loadUserVip() {
|
||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
||||
HttpClient.getInstance().get("ylahuoquyonghujibenxinxiv2", "ylahuoquyonghujibenxinxiv2")
|
||||
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
||||
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
||||
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||
|
@ -514,7 +514,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
||||
* 设置贵族状态
|
||||
*/
|
||||
private void loadUserVip() {
|
||||
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
|
||||
HttpClient.getInstance().get("ylahuoquyonghujibenxinxiv2", "ylahuoquyonghujibenxinxiv2")
|
||||
.params("uid", IMLoginManager.get(mContext).getUserInfo().getId())
|
||||
.params("token", IMLoginManager.get(mContext).getUserInfo().getToken())
|
||||
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||
|
@ -172,7 +172,7 @@ public class LiveMicUserDialogFragment extends AbsDialogFragment implements View
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
HttpClient.getInstance().get("Live.getUserDrLmPower", "Live.getUserDrLmPower")
|
||||
HttpClient.getInstance().get("ylahuoquyonghulianmaizhuangtai", "ylahuoquyonghulianmaizhuangtai")
|
||||
.params("roomid", LiveActivity.mLiveUid)
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.execute(new HttpCallback() {
|
||||
@ -280,7 +280,7 @@ public class LiveMicUserDialogFragment extends AbsDialogFragment implements View
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
Log.e("ry", "退出112");
|
||||
// //退出多人房间
|
||||
HttpClient.getInstance().get("live.leaveDrLm", "live.leaveDrLm")
|
||||
HttpClient.getInstance().get("ylatuichuduorenlianmai", "ylatuichuduorenlianmai")
|
||||
.params("roomid", LiveActivity.mLiveUid)
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.execute(new HttpCallback() {
|
||||
|
@ -161,7 +161,7 @@ public class MenuPopuwWindow implements View.OnClickListener {
|
||||
private Runnable setBlackRunnable = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
HttpClient.getInstance().get("User.setBlack", "setBlack")
|
||||
HttpClient.getInstance().get("ylaquxiaolahei", "ylaquxiaolahei")
|
||||
.params("touid", userId);
|
||||
}
|
||||
};
|
||||
|
@ -251,7 +251,7 @@ public class LiveLinkMicPkPresenter implements View.OnClickListener {
|
||||
mLiveLinkMicPkViewHolder.setTime(s + " " + s1);
|
||||
if (i == 0 && s1.equals("00:01") && mIsAnchor && !s.contains("懲罰")) {
|
||||
i = 1;
|
||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK")
|
||||
HttpClient.getInstance().get("ylajieshupk", "ylajieshupk")
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.params("addtime", "00:00")
|
||||
.params("type", "0")
|
||||
@ -272,13 +272,13 @@ public class LiveLinkMicPkPresenter implements View.OnClickListener {
|
||||
String pkUid = datas.getString("pkuid");
|
||||
Log.i("seed", seed_msg.mResult.toString());
|
||||
|
||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
||||
HttpClient.getInstance().post("ylafasongxiaoxiv2", "ylafasongxiaoxiv2")
|
||||
.params("GroupId", "g" + pkUid)
|
||||
.params("jsonstr", seed_msg.mResult.toString())
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
||||
HttpClient.getInstance().post("ylafasongxiaoxiv2", "ylafasongxiaoxiv2")
|
||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||
.params("jsonstr", seed_msg.mResult.toString())
|
||||
.execute(new HttpCallback() {
|
||||
@ -768,7 +768,7 @@ public class LiveLinkMicPkPresenter implements View.OnClickListener {
|
||||
//把画面设置成九宫格
|
||||
dr_pk_view.setVisibility(View.VISIBLE);
|
||||
|
||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
||||
HttpClient.getInstance().get("ylaxiugaizhiboxinxi", "ylaxiugaizhiboxinxi")
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.params("pkuid", u.getId())
|
||||
.params("type", "1")
|
||||
@ -777,7 +777,7 @@ public class LiveLinkMicPkPresenter implements View.OnClickListener {
|
||||
@Override
|
||||
public void onSuccess(int code, String msgs, String[] info) {
|
||||
if (code == 0) {
|
||||
HttpClient.getInstance().get("live.joinDRPKroom", "live.joinDRPKroom")
|
||||
HttpClient.getInstance().get("ylajiaruduorenpkfangjian", "ylajiaruduorenpkfangjian")
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.params("roomid", u.getId())
|
||||
.params("type", "1")
|
||||
|
@ -546,7 +546,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
//获取活动
|
||||
private void getEvent() {
|
||||
if (btn_onecz_event != null) {
|
||||
HttpClient.getInstance().get("Charge2.isFirstChargeIcons", "Charge2.isFirstChargeIcons")
|
||||
HttpClient.getInstance().get("ylaxinbanshifouxianshishouchongtubiao", "ylaxinbanshifouxianshishouchongtubiao")
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.params("token", CommonAppConfig.getInstance().getToken())
|
||||
.execute(new HttpCallback() {
|
||||
|
@ -397,7 +397,7 @@ public class LiveRyLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
||||
Log.i("tts2", s1);
|
||||
mLiveLinkMicPkViewHolder.setTime(s + " " + s1);
|
||||
if (s1.equals("00:01") && mIsAnchor && !s.contains("懲罰")) {
|
||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK")
|
||||
HttpClient.getInstance().get("ylajieshupk", "ylajieshupk")
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.params("addtime", "00:00")
|
||||
.params("type", "0")
|
||||
@ -420,13 +420,13 @@ public class LiveRyLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
||||
|
||||
Log.e("ry1", datas.getString("win_uid") + "VVVVVV" + datas.getString("pkuid"));
|
||||
|
||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
||||
HttpClient.getInstance().post("ylafasongxiaoxiv2", "ylafasongxiaoxiv2")
|
||||
.params("GroupId", "g" + pkUid)
|
||||
.params("jsonstr", seed_msg.mResult.toString())
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
||||
HttpClient.getInstance().post("ylafasongxiaoxiv2", "ylafasongxiaoxiv2")
|
||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||
.params("jsonstr", seed_msg.mResult.toString())
|
||||
.execute(new HttpCallback() {
|
||||
@ -940,7 +940,7 @@ public class LiveRyLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
||||
|
||||
@Override
|
||||
protected void onDRPkApply(UserBean u) {
|
||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
||||
HttpClient.getInstance().get("ylaxiugaizhiboxinxi", "ylaxiugaizhiboxinxi")
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.params("pkuid", u.getId())
|
||||
.params("type", "1")
|
||||
|
@ -350,7 +350,7 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
||||
Log.i("tts2", s1);
|
||||
mLiveLinkMicPkViewHolder.setTime(s + " " + s1);
|
||||
if (s1.equals("00:01") && mIsAnchor && !s.contains("懲罰")) {
|
||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK").params("uid", CommonAppConfig.getInstance().getUid()).params("addtime", "00:00").params("type", "0").params("sign", "1").execute(new HttpCallback() {
|
||||
HttpClient.getInstance().get("ylajieshupk", "ylajieshupk").params("uid", CommonAppConfig.getInstance().getUid()).params("addtime", "00:00").params("type", "0").params("sign", "1").execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0) {
|
||||
@ -363,10 +363,10 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V
|
||||
|
||||
Log.e("ry1", datas.getString("win_uid") + "VVVVVV" + datas.getString("pkuid"));
|
||||
|
||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||
HttpClient.getInstance().post("ylafasongxiaoxiv2", "ylafasongxiaoxiv2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||
HttpClient.getInstance().post("ylafasongxiaoxiv2", "ylafasongxiaoxiv2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
||||
|
@ -796,7 +796,7 @@ public class SocketClient {
|
||||
params.topMargin = 0;
|
||||
LivePushTxViewHolder.mPreView.setLayoutParams(params);
|
||||
//断开连麦
|
||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout")
|
||||
HttpClient.getInstance().post("ylashezhizhibozhongyonghuzhuangtai", "ylashezhizhibozhongyonghuzhuangtai")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
@ -43,7 +43,7 @@ public class SocketLinkMicPkUtil {
|
||||
*/
|
||||
public static void linkMicPkAccept(SocketClient client, String pkUid, String url, String name) {
|
||||
Log.i("pksend", "发送的pkurl=" + url + "****发送的pkname=" + name);
|
||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
||||
HttpClient.getInstance().get("ylaxiugaizhiboxinxi", "ylaxiugaizhiboxinxi")
|
||||
.params("pkuid", pkUid)
|
||||
.params("type", "1")
|
||||
.params("sign", "1")
|
||||
@ -51,7 +51,7 @@ public class SocketLinkMicPkUtil {
|
||||
@Override
|
||||
public void onSuccess(int code, String msgs, String[] info) {
|
||||
if (code == 0) {
|
||||
HttpClient.getInstance().get("Livepk.setPK", "Livepk.setPK")
|
||||
HttpClient.getInstance().get("ylakaishipk", "ylakaishipk")
|
||||
.params("pkuid", pkUid)
|
||||
.params("type", "1")
|
||||
.params("sign", "1")
|
||||
|
@ -1486,7 +1486,7 @@ public class SocketRyClient {
|
||||
}
|
||||
});
|
||||
//断开连麦
|
||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout")
|
||||
HttpClient.getInstance().post("ylashezhizhibozhongyonghuzhuangtai", "ylashezhizhibozhongyonghuzhuangtai")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
@ -40,7 +40,7 @@ public class SocketRyLinkMicPkUtil {
|
||||
* @param pkUid 对方主播的uid
|
||||
*/
|
||||
public static void linkMicPkAccept(SocketRyClient client, String pkUid, String url, String name) {
|
||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
||||
HttpClient.getInstance().get("ylaxiugaizhiboxinxi", "ylaxiugaizhiboxinxi")
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.params("pkuid", pkUid)
|
||||
.params("type", "1")
|
||||
@ -50,7 +50,7 @@ public class SocketRyLinkMicPkUtil {
|
||||
public void onSuccess(int code, String msgs, String[] info) {
|
||||
if (code == 0) {
|
||||
|
||||
HttpClient.getInstance().get("Livepk.setPK", "Livepk.setPK")
|
||||
HttpClient.getInstance().get("ylakaishipk", "ylakaishipk")
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.params("pkuid", pkUid)
|
||||
.params("type", "1")
|
||||
|
@ -1412,7 +1412,7 @@ public class SocketSwClient {
|
||||
// if (rtcRoom != null) {
|
||||
Bus.get().post(new LiveAudienceEvent().setType(LiveAudienceEvent.LiveAudienceType.DISCONNEXT_PK_TIME));
|
||||
//断开连麦
|
||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout").execute(new HttpCallback() {
|
||||
HttpClient.getInstance().post("ylashezhizhibozhongyonghuzhuangtai", "ylashezhizhibozhongyonghuzhuangtai").execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
||||
|
@ -39,7 +39,7 @@ public class SocketSwLinkMicPkUtil {
|
||||
* @param pkUid 对方主播的uid
|
||||
*/
|
||||
public static void linkMicPkAccept(SocketSwClient client, String pkUid, String url, String name) {
|
||||
HttpClient.getInstance().get("Livepk.changeLive", "Livepk.changeLive")
|
||||
HttpClient.getInstance().get("ylaxiugaizhiboxinxi", "ylaxiugaizhiboxinxi")
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.params("pkuid", pkUid)
|
||||
.params("type", "1")
|
||||
|
@ -145,7 +145,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
//获取房间连麦状态
|
||||
HttpClient.getInstance().get("live.getDrLm", "live.getDrLm")
|
||||
HttpClient.getInstance().get("ylahuoqulianmaizhuangtai", "ylahuoqulianmaizhuangtai")
|
||||
.params("uid", mLiveUid, true)
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
|
@ -1276,7 +1276,7 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
||||
audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
|
||||
audioManager.setSpeakerphoneOn(true);
|
||||
|
||||
HttpClient.getInstance().get("live.joinDrLm", "live.joinDrLm")
|
||||
HttpClient.getInstance().get("ylajiaruduorenlianmai", "ylajiaruduorenlianmai")
|
||||
.params("roomid", LiveActivity.mLiveUid)
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
|
@ -319,7 +319,7 @@ public class LivePlaySwViewHolder extends LiveRoomPlayViewHolder {
|
||||
}
|
||||
}
|
||||
|
||||
HttpClient.getInstance().get("Live.getDRPKroom", "Live.getDRPKroom").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", liveUid).execute(new HttpCallback() {
|
||||
HttpClient.getInstance().get("ylahuoquduorenpkfangjian", "ylahuoquduorenpkfangjian").params("uid", CommonAppConfig.getInstance().getUid()).params("roomid", liveUid).execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (info.length > 0) {
|
||||
|
@ -506,7 +506,7 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
|
||||
aheadOfScheduleEndPK(mPkUid, CommonAppConfig.getInstance().getUserBean().getUserNiceName(), (String) tv_avatarOther_name.getTag());
|
||||
//断开连麦
|
||||
LiveRyAnchorActivity.isDRPK = 0;
|
||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout")
|
||||
HttpClient.getInstance().post("ylashezhizhibozhongyonghuzhuangtai", "ylashezhizhibozhongyonghuzhuangtai")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
@ -514,7 +514,7 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
|
||||
});
|
||||
|
||||
|
||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK")
|
||||
HttpClient.getInstance().get("ylajieshupk", "ylajieshupk")
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.params("addtime", "1")
|
||||
.params("type", "1")
|
||||
@ -559,14 +559,14 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
|
||||
.param("uid", CommonAppConfig.getInstance().getUid());
|
||||
seed_msg.create();
|
||||
Log.i("seed", seed_msg.mResult.toString());
|
||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
||||
HttpClient.getInstance().get("ylafasongxiaoxiv2", "ylafasongxiaoxiv2")
|
||||
.params("GroupId", "g" + pkUid)
|
||||
.params("jsonstr", seed_msg.mResult.toString())
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
||||
HttpClient.getInstance().get("ylafasongxiaoxiv2", "ylafasongxiaoxiv2")
|
||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||
.params("jsonstr", seed_msg.mResult.toString())
|
||||
.execute(new HttpCallback() {
|
||||
@ -1051,7 +1051,7 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
||||
HttpClient.getInstance().post("ylafasongxiaoxiv2", "ylafasongxiaoxiv2")
|
||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||
.params("jsonstr", seed_msg.mResult.toString())
|
||||
.execute(new HttpCallback() {
|
||||
|
@ -177,13 +177,13 @@ public class LivePushSwViewHolder extends AbsRyLivePushViewHolder implements ITX
|
||||
aheadOfScheduleEndPK(mPkUid, CommonAppConfig.getInstance().getUserBean().getUserNiceName(), (String) tv_avatarOther_name.getTag());
|
||||
//断开连麦
|
||||
LiveSwAnchorActivity.isDRPK = 0;
|
||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout").execute(new HttpCallback() {
|
||||
HttpClient.getInstance().post("ylashezhizhibozhongyonghuzhuangtai", "ylashezhizhibozhongyonghuzhuangtai").execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
}
|
||||
});
|
||||
|
||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK").params("uid", CommonAppConfig.getInstance().getUid()).params("addtime", "1").params("type", "1").params("sign", "1").execute(new HttpCallback() {
|
||||
HttpClient.getInstance().get("ylajieshupk", "ylajieshupk").params("uid", CommonAppConfig.getInstance().getUid()).params("addtime", "1").params("type", "1").params("sign", "1").execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0) {
|
||||
@ -603,7 +603,7 @@ public class LivePushSwViewHolder extends AbsRyLivePushViewHolder implements ITX
|
||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + pkUid).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
HttpClient.getInstance().post("Tx.sendmsgzs2", "Tx.sendmsgzs2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||
HttpClient.getInstance().post("ylafasongxiaoxiv2", "ylafasongxiaoxiv2").params("GroupId", "g" + CommonAppConfig.getInstance().getUid()).params("jsonstr", seed_msg.mResult.toString()).execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
||||
|
@ -108,7 +108,7 @@ public class LivePushTxViewHolder extends AbsLivePushViewHolder implements ITXLi
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
//断开连麦
|
||||
HttpClient.getInstance().post("livepk.setliveuserout", "livepk.setliveuserout")
|
||||
HttpClient.getInstance().post("ylashezhizhibozhongyonghuzhuangtai", "ylashezhizhibozhongyonghuzhuangtai")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
@ -116,7 +116,7 @@ public class LivePushTxViewHolder extends AbsLivePushViewHolder implements ITXLi
|
||||
}
|
||||
});
|
||||
|
||||
HttpClient.getInstance().get("Livepk.endPK", "Livepk.endPK")
|
||||
HttpClient.getInstance().get("ylajieshupk", "ylajieshupk")
|
||||
.params("addtime", "00:00")
|
||||
.params("type", "0")
|
||||
.params("sign", "1")
|
||||
@ -143,14 +143,14 @@ public class LivePushTxViewHolder extends AbsLivePushViewHolder implements ITXLi
|
||||
params.topMargin = 0;
|
||||
LivePushTxViewHolder.mPreView.setLayoutParams(params);
|
||||
}
|
||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
||||
HttpClient.getInstance().get("ylafasongxiaoxiv2", "ylafasongxiaoxiv2")
|
||||
.params("GroupId", "g" + pkUid)
|
||||
.params("jsonstr", seed_msg.mResult.toString())
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
||||
HttpClient.getInstance().get("Tx.sendmsgzs2", "Tx.sendmsgzs2")
|
||||
HttpClient.getInstance().get("ylafasongxiaoxiv2", "ylafasongxiaoxiv2")
|
||||
.params("GroupId", "g" + CommonAppConfig.getInstance().getUid())
|
||||
.params("jsonstr", seed_msg.mResult.toString())
|
||||
.execute(new HttpCallback() {
|
||||
|
@ -160,7 +160,7 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder {
|
||||
ToastUtil.show("多人PK次数已用完");
|
||||
} else {
|
||||
//開始多人PK
|
||||
HttpClient.getInstance().get("live.startDRPK", "live.startDRPK")
|
||||
HttpClient.getInstance().get("ylakaishiduorenpk", "ylakaishiduorenpk")
|
||||
.params("roomid", CommonAppConfig.getInstance().getUid())
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
@ -182,7 +182,7 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder {
|
||||
btn_end_pk.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
HttpClient.getInstance().get("live.endDRpk", "live.endDRpk")
|
||||
HttpClient.getInstance().get("ylajieshuduorenpkv2", "ylajieshuduorenpkv2")
|
||||
.params("roomid", CommonAppConfig.getInstance().getUid())
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
@ -201,7 +201,7 @@ public class LiveRyAnchorViewHolder extends AbsLiveViewHolder {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
closeEndPkBt();
|
||||
HttpClient.getInstance().post("live.leaveDRPKroom", "live.leaveDRPKroom")
|
||||
HttpClient.getInstance().post("ylatuichuduorenpkfangjian", "ylatuichuduorenpkfangjian")
|
||||
.params("roomid", drpkRoomId)
|
||||
.params("uid", CommonAppConfig.getInstance().getUid())
|
||||
.execute(new HttpCallback() {
|
||||
|
@ -1204,7 +1204,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
if (isSw) {
|
||||
if (mLivePlayViewHolder != null) {
|
||||
mLivePlayViewHolder.endLiveMic();
|
||||
HttpClient.getInstance().get("live.leaveDrLm", "live.leaveDrLm")
|
||||
HttpClient.getInstance().get("ylatuichuduorenlianmai", "ylatuichuduorenlianmai")
|
||||
.params("roomid", liveID)
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
@ -1241,7 +1241,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
Log.e("ry", "下麦成功");
|
||||
// 该用户切换为观众成功,可以以观众身份进行音视频
|
||||
//退出多人房间
|
||||
HttpClient.getInstance().get("live.leaveDrLm", "live.leaveDrLm")
|
||||
HttpClient.getInstance().get("ylatuichuduorenlianmai", "ylatuichuduorenlianmai")
|
||||
.params("roomid", liveID)
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
|
@ -723,7 +723,7 @@ public class EntryActivity extends AppCompatActivity {
|
||||
if (CommonAppConfig.IS_GOOGLE_PLAY == 1 || CommonAppConfig.IS_GOOGLE_PLAY == 2 || CommonAppConfig.IS_GOOGLE_PLAY == 3) {
|
||||
EntryActivity.this.startActivity(new Intent(EntryActivity.this, OneLoginActivity.class));
|
||||
} else {
|
||||
HttpClient.getInstance().post("Home.getRandJoinAnchor", "Home.getRandJoinAnchor").execute(new HttpCallback() {
|
||||
HttpClient.getInstance().post("ylahuoquxinyonghusuijiid", "ylahuoquxinyonghusuijiid").execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (info[0] != null) {
|
||||
|
@ -316,7 +316,7 @@ public class LoginActivity extends AbsActivity {
|
||||
public void callback(UserBean bean) {
|
||||
//融云连接服务器
|
||||
RongcloudIMManager.connectIM(activity);
|
||||
HttpClient.getInstance().post("Home.getRandJoinAnchor", "Home.getRandJoinAnchor")
|
||||
HttpClient.getInstance().post("ylahuoquxinyonghusuijiid", "ylahuoquxinyonghusuijiid")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
@ -486,7 +486,7 @@ public class RegisterActivity extends AbsActivity {
|
||||
@Override
|
||||
public void run() {
|
||||
IMLoginModel userInfo = IMLoginManager.get(activity).getUserInfo();
|
||||
HttpClient.getInstance().post("Home.getRandJoinAnchor", "Home.getRandJoinAnchor").params("uid", userInfo.getId()).params("token", userInfo.getToken()).execute(new HttpCallback() {
|
||||
HttpClient.getInstance().post("ylahuoquxinyonghusuijiid", "ylahuoquxinyonghusuijiid").params("uid", userInfo.getId()).params("token", userInfo.getToken()).execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if(info!=null){
|
||||
|
@ -89,14 +89,14 @@ public class OneLoginDialog extends AbsDialogFragment {
|
||||
btn_enter.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
HttpClient.getInstance().get("User.userBindAgentAdmin", "User.userBindAgentAdmin")
|
||||
HttpClient.getInstance().get("ylayonghubangdingdaili", "ylayonghubangdingdaili")
|
||||
.params("invitation_code", bundle.getString("code"))
|
||||
.params("user_nicename", bundle.getString("name"))
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0) {
|
||||
HttpClient.getInstance().post("Home.getRandJoinAnchor", "Home.getRandJoinAnchor")
|
||||
HttpClient.getInstance().post("ylahuoquxinyonghusuijiid", "ylahuoquxinyonghusuijiid")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
@ -18,6 +18,7 @@ import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.manager.imrongcloud.RongcloudIMManager;
|
||||
import com.yunbao.common.utils.MD5Util;
|
||||
import com.yunbao.common.utils.SpUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.VersionUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.main.utils.MacUitl;
|
||||
@ -46,7 +47,7 @@ public class MainHttpUtil {
|
||||
* 手机号 密码登录
|
||||
*/
|
||||
public static void login(String phoneNum, String pwd, String uuid, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Login.userLogin", MainHttpConsts.LOGIN)
|
||||
HttpClient.getInstance().get("ylahuiyuandenglu", MainHttpConsts.LOGIN)
|
||||
.params("user_login", phoneNum)
|
||||
.params("user_pass", pwd)
|
||||
.params("pushid", "")
|
||||
@ -69,7 +70,7 @@ public class MainHttpUtil {
|
||||
} else if (CommonAppConfig.IS_GOOGLE_PLAY == 1) {
|
||||
appSource = "6";
|
||||
}
|
||||
HttpClient.getInstance().get("Login.userLoginByThird", MainHttpConsts.LOGIN_BY_THIRD)
|
||||
HttpClient.getInstance().get("yladisanfangdenglu", MainHttpConsts.LOGIN_BY_THIRD)
|
||||
.params("openid", openid)
|
||||
.params("nicename", nicename)
|
||||
.params("app_source", appSource)
|
||||
@ -95,7 +96,7 @@ public class MainHttpUtil {
|
||||
} else if (CommonAppConfig.IS_GOOGLE_PLAY == 1) {
|
||||
appSource = "6";
|
||||
}
|
||||
HttpClient.getInstance().get("Login.userLoginByThird", MainHttpConsts.LOGIN_BY_THIRD)
|
||||
HttpClient.getInstance().get("yladisanfangdenglu", MainHttpConsts.LOGIN_BY_THIRD)
|
||||
.params("openid", openid)
|
||||
.params("app_source", appSource)
|
||||
.params("admin_id", promoCode)
|
||||
@ -117,7 +118,7 @@ public class MainHttpUtil {
|
||||
*/
|
||||
public static void requestBonus(HttpCallback callback) {
|
||||
String appVer = AppUtils.getAppVersionName();
|
||||
HttpClient.getInstance().get("User.bonus", MainHttpConsts.REQUEST_BONUS)
|
||||
HttpClient.getInstance().get("ylayonghudenglujiangli", MainHttpConsts.REQUEST_BONUS)
|
||||
.params("appAndroidVersion", appVer)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -126,7 +127,7 @@ public class MainHttpUtil {
|
||||
* 新版本签到奖励
|
||||
*/
|
||||
public static void requestNewBonus(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Sign.userSign", MainHttpConsts.REQUEST_BONUS)
|
||||
HttpClient.getInstance().get("ylahuiyuanqiandao", MainHttpConsts.REQUEST_BONUS)
|
||||
.params("uuid_Device", DeviceUtils.getUniqueDeviceId())
|
||||
.params("lastlogindevice", "Android")
|
||||
.params("model", android.os.Build.BRAND + android.os.Build.MODEL)
|
||||
@ -137,7 +138,7 @@ public class MainHttpUtil {
|
||||
* 获取签到奖励
|
||||
*/
|
||||
public static void getBonus(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getBonus", MainHttpConsts.GET_BONUS)
|
||||
HttpClient.getInstance().get("ylalingquyonghudenglujiangli", MainHttpConsts.GET_BONUS)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -145,7 +146,7 @@ public class MainHttpUtil {
|
||||
* 用于用户首次登录设置分销关系
|
||||
*/
|
||||
public static void setDistribut(String code, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.setDistribut", MainHttpConsts.SET_DISTRIBUT)
|
||||
HttpClient.getInstance().get("ylashezhifenxiaoshangji", MainHttpConsts.SET_DISTRIBUT)
|
||||
.params("code", code)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -154,7 +155,7 @@ public class MainHttpUtil {
|
||||
* 首页直播
|
||||
*/
|
||||
public static void getHot(int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.getHot", MainHttpConsts.GET_HOT)
|
||||
HttpClient.getInstance().get("ylahuoquremenzhubo", MainHttpConsts.GET_HOT)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -163,7 +164,7 @@ public class MainHttpUtil {
|
||||
* 首页推荐直播
|
||||
*/
|
||||
public static void getRandom(int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.getRandom", MainHttpConsts.GET_RANDOM)
|
||||
HttpClient.getInstance().get("ylahuoqutuijianzhubo", MainHttpConsts.GET_RANDOM)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -171,7 +172,7 @@ public class MainHttpUtil {
|
||||
* 首页关注直播
|
||||
*/
|
||||
public static void getHomeFollow(int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.getFollow", MainHttpConsts.GET_HOME_FOLLOW)
|
||||
HttpClient.getInstance().get("ylahuoquguanzhuzhuboliebiao", MainHttpConsts.GET_HOME_FOLLOW)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -180,7 +181,7 @@ public class MainHttpUtil {
|
||||
* 首页红包专区
|
||||
*/
|
||||
public static void getRedPacket(int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.getRedPacket", MainHttpConsts.GET_RANDOM)
|
||||
HttpClient.getInstance().get("ylahuoquhongbaozhuanquliebiao", MainHttpConsts.GET_RANDOM)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -188,7 +189,7 @@ public class MainHttpUtil {
|
||||
* 首页
|
||||
*/
|
||||
public static void getFollow(int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.getFollow", MainHttpConsts.GET_FOLLOW)
|
||||
HttpClient.getInstance().get("ylahuoquguanzhuzhuboliebiao", MainHttpConsts.GET_FOLLOW)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -197,7 +198,7 @@ public class MainHttpUtil {
|
||||
* 首页 附近
|
||||
*/
|
||||
public static void getNear(int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.getNearby", MainHttpConsts.GET_NEAR)
|
||||
HttpClient.getInstance().get("ylahuoqufujinzhubo", MainHttpConsts.GET_NEAR)
|
||||
.params("lng", CommonAppConfig.getInstance().getLng())
|
||||
.params("lat", CommonAppConfig.getInstance().getLat())
|
||||
.params("p", p)
|
||||
@ -207,7 +208,7 @@ public class MainHttpUtil {
|
||||
|
||||
//排行榜 魅力榜
|
||||
public static void profitList(String type, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.profitList", MainHttpConsts.PROFIT_LIST)
|
||||
HttpClient.getInstance().get("ylashouyibangdan", MainHttpConsts.PROFIT_LIST)
|
||||
.params("type", type)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
@ -215,19 +216,27 @@ public class MainHttpUtil {
|
||||
|
||||
//排行榜 豪气榜
|
||||
public static void consumeList(String type, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.consumeList", MainHttpConsts.CONSUME_LIST)
|
||||
HttpClient.getInstance().get("ylagongxianbangdan", MainHttpConsts.CONSUME_LIST)
|
||||
.params("type", type)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
|
||||
}
|
||||
|
||||
//排行榜 盲盒榜
|
||||
public static void blindBoxList(String type, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("ylamanghebangdan", MainHttpConsts.BLIND_BOX_LIST)
|
||||
.params("type", type)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取谷歌
|
||||
*/
|
||||
public static void getGoogle(String token, final CommonCallback<GoogleBean> commonCallback) {
|
||||
HttpClient.getInstance().get("Charge.getChargeHide", MainHttpConsts.GET_BASE_INFO)
|
||||
HttpClient.getInstance().get("ylahuoqucongzhijiekouxinxi", MainHttpConsts.GET_BASE_INFO)
|
||||
.params("terminal", "1")
|
||||
.params("token", token)
|
||||
.execute(new HttpCallback() {
|
||||
@ -256,7 +265,7 @@ public class MainHttpUtil {
|
||||
* 获取用户信息
|
||||
*/
|
||||
public static void getBaseInfo(String uid, String token, final CommonCallback<UserBean> commonCallback) {
|
||||
HttpClient.getInstance().get("User.getBaseInfos", MainHttpConsts.GET_BASE_INFO)
|
||||
HttpClient.getInstance().get("ylahuoquyonghujibenxinxiv2", MainHttpConsts.GET_BASE_INFO)
|
||||
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
@ -291,7 +300,7 @@ public class MainHttpUtil {
|
||||
}
|
||||
|
||||
public static void getBaseInfos(String uid, String token, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getBaseInfos", MainHttpConsts.GET_BASE_INFO)
|
||||
HttpClient.getInstance().get("ylahuoquyonghujibenxinxiv2", MainHttpConsts.GET_BASE_INFO)
|
||||
.params("key1", RongcloudIMManager.RONG_IM_KEY)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -315,7 +324,7 @@ public class MainHttpUtil {
|
||||
* 获取用户钱
|
||||
*/
|
||||
public static void getBalance(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getUserBalance", "User.getUserBalance")
|
||||
HttpClient.getInstance().get("ylachaxunyonghuyue", "chaxunyonghuyue")
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -331,7 +340,7 @@ public class MainHttpUtil {
|
||||
* 拉黑对方, 解除拉黑
|
||||
*/
|
||||
public static void setBlack(String toUid, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.setBlack", MainHttpConsts.SET_BLACK)
|
||||
HttpClient.getInstance().get("ylashezhilaheizhuangtai", MainHttpConsts.SET_BLACK)
|
||||
.params("touid", toUid)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -340,7 +349,7 @@ public class MainHttpUtil {
|
||||
* 获取个性设置列表
|
||||
*/
|
||||
public static void getSettingList(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getPerSetting", MainHttpConsts.GET_SETTING_LIST)
|
||||
HttpClient.getInstance().get("ylahuoqugexingshezhiliebiao", MainHttpConsts.GET_SETTING_LIST)
|
||||
.params("version", VersionUtil.getVersion())
|
||||
.params("package_name","panduo")
|
||||
.execute(callback);
|
||||
@ -350,17 +359,18 @@ public class MainHttpUtil {
|
||||
* 搜索
|
||||
*/
|
||||
public static void search(String key, int type, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.search", MainHttpConsts.SEARCH)
|
||||
HttpClient.getInstance().get("ylashouyesousuohuiyuan", MainHttpConsts.SEARCH)
|
||||
.params("key", key)
|
||||
.params("type", type)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索
|
||||
*/
|
||||
public static void searchnew(String fan_key, String jian_key,int type, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("", MainHttpConsts.SEARCH)
|
||||
public static void searchnew(String fan_key, String jian_key, int type, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("yla", MainHttpConsts.SEARCH)
|
||||
.params("jian_key", jian_key)
|
||||
.params("fan_key", fan_key)
|
||||
.params("type", type)
|
||||
@ -372,7 +382,7 @@ public class MainHttpUtil {
|
||||
* 获取我的拉黑列表
|
||||
*/
|
||||
public static void getBlackList(int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getBlackList", "User.getBlackList")
|
||||
HttpClient.getInstance().get("ylahuoquheimingdanliebiao", "huoquheimingdanliebiao")
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -383,7 +393,7 @@ public class MainHttpUtil {
|
||||
* @param touid 对方的uid
|
||||
*/
|
||||
public static void getFollowList(String touid, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getFollowsList", MainHttpConsts.GET_FOLLOW_LIST)
|
||||
HttpClient.getInstance().get("ylahuoquguanzhuliebiao", MainHttpConsts.GET_FOLLOW_LIST)
|
||||
.params("touid", touid)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
@ -395,7 +405,7 @@ public class MainHttpUtil {
|
||||
* @param touid 对方的uid
|
||||
*/
|
||||
public static void getFansList(String touid, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getFansList", MainHttpConsts.GET_FANS_LIST)
|
||||
HttpClient.getInstance().get("ylahuoqufensiliebiao", MainHttpConsts.GET_FANS_LIST)
|
||||
.params("touid", touid)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
@ -406,7 +416,7 @@ public class MainHttpUtil {
|
||||
* 上传头像,用post
|
||||
*/
|
||||
public static void updateAvatar(File file, HttpCallback callback) {
|
||||
HttpClient.getInstance().post("User.updateAvatar", MainHttpConsts.UPDATE_AVATAR)
|
||||
HttpClient.getInstance().post("ylashangchuantouxiang", MainHttpConsts.UPDATE_AVATAR)
|
||||
.isMultipart(true)
|
||||
.params("file", file)
|
||||
.execute(callback);
|
||||
@ -418,7 +428,7 @@ public class MainHttpUtil {
|
||||
* @param fields 用户资料 ,以json形式出现
|
||||
*/
|
||||
public static void updateFields(String fields, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Pdluser.updateFields", MainHttpConsts.UPDATE_FIELDS)
|
||||
HttpClient.getInstance().get("ylaxiugaiyonghuxinxi", MainHttpConsts.UPDATE_FIELDS)
|
||||
.params("fields", fields)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -428,7 +438,7 @@ public class MainHttpUtil {
|
||||
* 获取 我的收益 可提现金额数
|
||||
*/
|
||||
public static void getProfit(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getProfit", MainHttpConsts.GET_PROFIT)
|
||||
HttpClient.getInstance().get("ylahuoquwodeshouyi", MainHttpConsts.GET_PROFIT)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -436,7 +446,7 @@ public class MainHttpUtil {
|
||||
* 获取 提现账户列表
|
||||
*/
|
||||
public static void getCashAccountList(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getUserAccountList", MainHttpConsts.GET_USER_ACCOUNT_LIST)
|
||||
HttpClient.getInstance().get("ylahuoquyonghutixianzhanghao", MainHttpConsts.GET_USER_ACCOUNT_LIST)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -445,7 +455,7 @@ public class MainHttpUtil {
|
||||
* 添加 提现账户
|
||||
*/
|
||||
public static void addCashAccount(String account, String name, String bank, int type, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.setUserAccount", MainHttpConsts.ADD_CASH_ACCOUNT)
|
||||
HttpClient.getInstance().get("ylashezhiyonghutixianzhanghao", MainHttpConsts.ADD_CASH_ACCOUNT)
|
||||
.params("account", account)
|
||||
.params("name", name)
|
||||
.params("account_bank", bank)
|
||||
@ -457,7 +467,7 @@ public class MainHttpUtil {
|
||||
* 删除 提现账户
|
||||
*/
|
||||
public static void deleteCashAccount(String accountId, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.delUserAccount", MainHttpConsts.DEL_CASH_ACCOUNT)
|
||||
HttpClient.getInstance().get("ylashanchuyonghutixianzhanghao", MainHttpConsts.DEL_CASH_ACCOUNT)
|
||||
.params("id", accountId)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -466,18 +476,17 @@ public class MainHttpUtil {
|
||||
* 提现
|
||||
*/
|
||||
public static void doCash(String votes, String accountId, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.setCash", MainHttpConsts.DO_CASH)
|
||||
HttpClient.getInstance().get("ylayonghutixian", MainHttpConsts.DO_CASH)
|
||||
.params("cashvote", votes)//提现的票数
|
||||
.params("accountid", accountId)//账号ID
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 分类直播
|
||||
*/
|
||||
public static void getClassLive(int classId, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.getClassLive", MainHttpConsts.GET_CLASS_LIVE)
|
||||
HttpClient.getInstance().get("ylahuoqufenleizhibo", MainHttpConsts.GET_CLASS_LIVE)
|
||||
.params("liveclassid", classId)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
@ -487,7 +496,7 @@ public class MainHttpUtil {
|
||||
* 获取自己收到的主播印象列表
|
||||
*/
|
||||
public static void getMyImpress(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getMyLabel", MainHttpConsts.GET_MY_IMPRESS)
|
||||
HttpClient.getInstance().get("ylahuoquyingxiangbiaoqian", MainHttpConsts.GET_MY_IMPRESS)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -495,7 +504,7 @@ public class MainHttpUtil {
|
||||
* 用于用户首次登录推荐
|
||||
*/
|
||||
public static void getRecommend(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.getRecommend", MainHttpConsts.GET_RECOMMEND)
|
||||
HttpClient.getInstance().get("ylahuoqutuijian", MainHttpConsts.GET_RECOMMEND)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -504,7 +513,7 @@ public class MainHttpUtil {
|
||||
* 用于用户首次登录推荐,关注主播
|
||||
*/
|
||||
public static void recommendFollow(String touid, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.attentRecommend", MainHttpConsts.RECOMMEND_FOLLOW)
|
||||
HttpClient.getInstance().get("ylaguanzhutuijianzhubo", MainHttpConsts.RECOMMEND_FOLLOW)
|
||||
.params("touid", touid)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -514,10 +523,10 @@ public class MainHttpUtil {
|
||||
*/
|
||||
public static void getRegisterCode(String mobile, HttpCallback callback) {
|
||||
String sign = MD5Util.getMD5("mobile=" + mobile + "&" + SALT);
|
||||
HttpClient.getInstance().get("Login.getCode", MainHttpConsts.GET_REGISTER_CODE)
|
||||
HttpClient.getInstance().get("ylahuoquduanxiyanzhengma", MainHttpConsts.GET_REGISTER_CODE)
|
||||
.params("mobile", mobile)
|
||||
.params("sign", sign)
|
||||
.params("source", "2")
|
||||
.params("source", "1")
|
||||
.params("langue", WordUtil.isNewZh()?"chinese":"english")
|
||||
.execute(callback);
|
||||
}
|
||||
@ -532,7 +541,7 @@ public class MainHttpUtil {
|
||||
MacUitl macUitl = new MacUitl();
|
||||
String uuid = DeviceUtils.getUniqueDeviceId();
|
||||
|
||||
HttpClient.getInstance().get("Login.getCode", MainHttpConsts.GET_REGISTER_CODE)
|
||||
HttpClient.getInstance().get("ylahuoquduanxiyanzhengma", MainHttpConsts.GET_REGISTER_CODE)
|
||||
.params("mobile", mobile)
|
||||
.params("country_code", countryCode + "")
|
||||
.params("sign", sign)
|
||||
@ -549,7 +558,7 @@ public class MainHttpUtil {
|
||||
* 第三方绑定手机号
|
||||
*/
|
||||
public static void bindPhone(String mobile, int countryCode, String uid, String token, String user_pass, String user_pass2, String code, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Login.bindMobile", MainHttpConsts.BINDMOBILE)
|
||||
HttpClient.getInstance().get("ylabangdingshoujihao", MainHttpConsts.BINDMOBILE)
|
||||
.params("mobile", mobile)
|
||||
.params("country_code", countryCode + "")
|
||||
.params("uid", uid, true)
|
||||
@ -564,7 +573,7 @@ public class MainHttpUtil {
|
||||
* 修改绑定手机号
|
||||
*/
|
||||
public static void updateBindMobile(String mobile, int countryCode, String uid, String token, String code, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Login.updateBindMobile", MainHttpConsts.UPDATEBINDMOBILE)
|
||||
HttpClient.getInstance().get("ylagenghuanshoujihao", MainHttpConsts.UPDATEBINDMOBILE)
|
||||
.params("mobile", mobile)
|
||||
.params("country_code", countryCode + "")
|
||||
.params("uid", uid, true)
|
||||
@ -577,7 +586,7 @@ public class MainHttpUtil {
|
||||
// * 手机注册接口
|
||||
// */
|
||||
// public static void register(String user_login, String pass, String pass2, String code, HttpCallback callback) {
|
||||
// HttpClient.getInstance().get("Login.userReg", MainHttpConsts.REGISTER)
|
||||
// HttpClient.getInstance().get("ylaLogin.userReg", MainHttpConsts.REGISTER)
|
||||
// .params("user_login", user_login)
|
||||
// .params("user_pass", pass)
|
||||
// .params("user_pass2", pass2)
|
||||
@ -596,7 +605,7 @@ public class MainHttpUtil {
|
||||
} else if (CommonAppConfig.IS_GOOGLE_PLAY == 1) {
|
||||
appSource = "6";
|
||||
}
|
||||
HttpClient.getInstance().get("Login.userReg", MainHttpConsts.REGISTER)
|
||||
HttpClient.getInstance().get("ylahuiyuanzhuce", MainHttpConsts.REGISTER)
|
||||
.params("user_login", user_login)
|
||||
.params("app_source", appSource)
|
||||
//增加参数:推广码
|
||||
@ -620,7 +629,7 @@ public class MainHttpUtil {
|
||||
* 找回密码
|
||||
*/
|
||||
public static void findPwd(String user_login, String pass, String pass2, String code, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Login.userFindPass", MainHttpConsts.FIND_PWD)
|
||||
HttpClient.getInstance().get("ylayonghuzhaohuimima", MainHttpConsts.FIND_PWD)
|
||||
.params("user_login", user_login)
|
||||
.params("user_pass", pass)
|
||||
.params("user_pass2", pass2)
|
||||
@ -634,7 +643,7 @@ public class MainHttpUtil {
|
||||
* 重置密码
|
||||
*/
|
||||
public static void modifyPwd(String oldpass, String pass, String pass2, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.updatePass", MainHttpConsts.MODIFY_PWD)
|
||||
HttpClient.getInstance().get("ylaxiugaimima", MainHttpConsts.MODIFY_PWD)
|
||||
.params("oldpass", oldpass)
|
||||
.params("pass", pass)
|
||||
.params("pass2", pass2)
|
||||
@ -647,7 +656,7 @@ public class MainHttpUtil {
|
||||
*/
|
||||
public static void getFindPwdCode(String mobile, String country_code, HttpCallback callback) {
|
||||
// String sign = MD5Util.getMD5("mobile=" + mobile + "&" + SALT);
|
||||
HttpClient.getInstance().get("Login.getCode", MainHttpConsts.GET_FIND_PWD_CODE)
|
||||
HttpClient.getInstance().get("ylahuoquduanxiyanzhengma", MainHttpConsts.GET_FIND_PWD_CODE)
|
||||
.params("mobile", mobile)
|
||||
.params("country_code", country_code)
|
||||
.params("source", "2")
|
||||
@ -660,7 +669,7 @@ public class MainHttpUtil {
|
||||
* 三级分销页面 获取二维码
|
||||
*/
|
||||
public static void getQrCode(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Agent.getCode", MainHttpConsts.GET_QR_CODE)
|
||||
HttpClient.getInstance().get("ylahuoqufenxiangxinxi", MainHttpConsts.GET_QR_CODE)
|
||||
.params("source", "1")
|
||||
.execute(callback);
|
||||
}
|
||||
@ -670,7 +679,7 @@ public class MainHttpUtil {
|
||||
* 首页的排行榜轮播
|
||||
*/
|
||||
public static void getHomeTop(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.consumeproList", MainHttpConsts.HOME_TOP)
|
||||
HttpClient.getInstance().get("ylagongxianzhoubang", MainHttpConsts.HOME_TOP)
|
||||
.params("type", "month")
|
||||
.params("p", "1")
|
||||
.execute(callback);
|
||||
@ -680,7 +689,7 @@ public class MainHttpUtil {
|
||||
* 动态赠送礼物
|
||||
*/
|
||||
public static void sendDynamicGift(String id, int gift_num, String gift_id, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Community.sendDynamicGift", MainHttpConsts.SEND_DYNAMICGIFT)
|
||||
HttpClient.getInstance().get("ylazengsongdongtailiwu", MainHttpConsts.SEND_DYNAMICGIFT)
|
||||
.params("dynamic_id", id)
|
||||
.params("gift_num", gift_num)
|
||||
.params("gift_id", gift_id)
|
||||
@ -691,7 +700,7 @@ public class MainHttpUtil {
|
||||
* 动态赠送礼物列表
|
||||
*/
|
||||
public static void getDynamicGiftInfo(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Community.getDynamicGiftInfo", MainHttpConsts.GET_DYNAMICGIFTINFO)
|
||||
HttpClient.getInstance().get("ylahuoqushequdongtailiwuxinxi", MainHttpConsts.GET_DYNAMICGIFTINFO)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -699,7 +708,7 @@ public class MainHttpUtil {
|
||||
* 社区动态礼物信息列表
|
||||
*/
|
||||
public static void getDynamicSendGiftList(String id, int page, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Community.getDynamicSendGiftList", MainHttpConsts.GET_DYNAMICSENDGIFTLIST)
|
||||
HttpClient.getInstance().get("ylahuoqushequdongtailiwuliebiao", MainHttpConsts.GET_DYNAMICSENDGIFTLIST)
|
||||
.params("dynamic_id", id)
|
||||
.params("page", page)
|
||||
.execute(callback);
|
||||
@ -711,7 +720,7 @@ public class MainHttpUtil {
|
||||
* 是否是主播
|
||||
*/
|
||||
public static void isAnchor(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.isAnchor", MainHttpConsts.ISANCHOR)
|
||||
HttpClient.getInstance().get("ylashifouweizhubozhanghao", MainHttpConsts.ISANCHOR)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -719,7 +728,7 @@ public class MainHttpUtil {
|
||||
* 是否是完成任务
|
||||
*/
|
||||
public static void getUserFrontTaskType(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Task.getUserFrontTaskType", MainHttpConsts.GET_USER_FRONTTASKTYPE)
|
||||
HttpClient.getInstance().get("ylahuoquqianzhirenwushifouwancheng", MainHttpConsts.GET_USER_FRONTTASKTYPE)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -727,7 +736,7 @@ public class MainHttpUtil {
|
||||
* 客服地址
|
||||
*/
|
||||
public static void getCustomerService(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.getCustomerService", MainHttpConsts.GETCUSTOMERSERVICE)
|
||||
HttpClient.getInstance().get("ylahuoqudengluyekefu", MainHttpConsts.GETCUSTOMERSERVICE)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -735,7 +744,7 @@ public class MainHttpUtil {
|
||||
* 获取im备注信息
|
||||
*/
|
||||
public static void getInstructorRemark(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.getInstructorRemark", MainHttpConsts.GETINSTRUCTORREMARK)
|
||||
HttpClient.getInstance().get("ylahuoqutuiguangbeizhumingliebiao", MainHttpConsts.GETINSTRUCTORREMARK)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -743,12 +752,13 @@ public class MainHttpUtil {
|
||||
* 是否管理员
|
||||
*/
|
||||
public static void isInstructor(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.isInstructor", MainHttpConsts.ISINSTRUCTOR)
|
||||
HttpClient.getInstance().get("ylashifouweituiguangzhanghao", MainHttpConsts.ISINSTRUCTOR)
|
||||
.execute(callback);
|
||||
}
|
||||
//
|
||||
public static void setMessageReadAll(){
|
||||
HttpClient.getInstance().get("User.getUserInstructor","")
|
||||
|
||||
//
|
||||
public static void setMessageReadAll() {
|
||||
HttpClient.getInstance().get("ylahuoquyonghuzhidaoyuan", "")
|
||||
.execute(new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
@ -756,31 +766,25 @@ public class MainHttpUtil {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备号有没有注册过
|
||||
*/
|
||||
public static void getDeviceLoginType( HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Login.getDeviceLoginType", "Login.getDeviceLoginType")
|
||||
public static void getDeviceLoginType(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("ylaLogin.getDeviceLoginType", "Login.getDeviceLoginType")
|
||||
.params("uuid_Device", DeviceUtils.getUniqueDeviceId())
|
||||
.execute(callback);
|
||||
|
||||
}
|
||||
|
||||
|
||||
//排行榜 盲盒榜
|
||||
public static void blindBoxList(String type, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Home.blindBoxList", MainHttpConsts.BLIND_BOX_LIST)
|
||||
.params("type", type)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单通知
|
||||
*/
|
||||
public static void hwNotify(String InAppPurchaseData, String Signature, String orderId, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Charge.HuaweiNotify", "Charge.HuaweiNotify")
|
||||
HttpClient.getInstance().get("ylahuaweizhifuhuidiao", "huaweizhifuhuidiao")
|
||||
.params("InAppPurchaseData", InAppPurchaseData)
|
||||
.params("InAppDataSignature", Signature)
|
||||
.params("SelfOrderId", orderId)
|
||||
|
@ -29,7 +29,7 @@ public class VideoHttpUtil {
|
||||
* 获取首页视频列表
|
||||
*/
|
||||
public static void getHomeVideoList(int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.getVideoList", VideoHttpConsts.GET_HOME_VIDEO_LIST)
|
||||
HttpClient.getInstance().get("ylazhhuoqurenmenshipin", VideoHttpConsts.GET_HOME_VIDEO_LIST)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -39,7 +39,7 @@ public class VideoHttpUtil {
|
||||
* 视频点赞
|
||||
*/
|
||||
public static void setVideoLike(String tag, String videoid, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.addLike", tag)
|
||||
HttpClient.getInstance().get("ylazhshipindianzan", tag)
|
||||
.params("videoid", videoid)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -48,7 +48,7 @@ public class VideoHttpUtil {
|
||||
* 获取视频评论
|
||||
*/
|
||||
public static void getVideoCommentList(String videoid, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.getComments", VideoHttpConsts.GET_VIDEO_COMMENT_LIST)
|
||||
HttpClient.getInstance().get("ylazhshipinpinglunliebiao", VideoHttpConsts.GET_VIDEO_COMMENT_LIST)
|
||||
.params("videoid", videoid)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
@ -58,7 +58,7 @@ public class VideoHttpUtil {
|
||||
* 评论点赞
|
||||
*/
|
||||
public static void setCommentLike(String commentid, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.addCommentLike", VideoHttpConsts.SET_COMMENT_LIKE)
|
||||
HttpClient.getInstance().get("ylazhpinglundianzan", VideoHttpConsts.SET_COMMENT_LIKE)
|
||||
.params("commentid", commentid)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -67,7 +67,7 @@ public class VideoHttpUtil {
|
||||
* 发表评论
|
||||
*/
|
||||
public static void setComment(String toUid, String videoId, String content, String commentId, String parentId, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.setComment", VideoHttpConsts.SET_COMMENT)
|
||||
HttpClient.getInstance().get("ylazhfabupinglun", VideoHttpConsts.SET_COMMENT)
|
||||
.params("touid", toUid)
|
||||
.params("videoid", videoId)
|
||||
.params("commentid", commentId)
|
||||
@ -82,7 +82,7 @@ public class VideoHttpUtil {
|
||||
* 获取评论回复
|
||||
*/
|
||||
public static void getCommentReply(String commentid, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.getReplys", VideoHttpConsts.GET_COMMENT_REPLY)
|
||||
HttpClient.getInstance().get("ylazhpinglunhuifuliebiao", VideoHttpConsts.GET_COMMENT_REPLY)
|
||||
.params("commentid", commentid)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
@ -149,7 +149,7 @@ public class VideoHttpUtil {
|
||||
* 上传视频,获取七牛云token的接口
|
||||
*/
|
||||
public static void getQiNiuToken(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.getQiniuToken", VideoHttpConsts.GET_QI_NIU_TOKEN)
|
||||
HttpClient.getInstance().get("ylazhhuoquqiniushangchuanlingpai", VideoHttpConsts.GET_QI_NIU_TOKEN)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -163,7 +163,7 @@ public class VideoHttpUtil {
|
||||
* @param musicId 背景音乐Id
|
||||
*/
|
||||
public static void saveUploadVideoInfo(String title, String thumb, String href, int musicId, boolean openLocation, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.setVideo", VideoHttpConsts.SAVE_UPLOAD_VIDEO_INFO)
|
||||
HttpClient.getInstance().get("ylazhfabuduanshipin", VideoHttpConsts.SAVE_UPLOAD_VIDEO_INFO)
|
||||
.params("lat", openLocation ? String.valueOf(CommonAppConfig.getInstance().getLat()) : "")
|
||||
.params("lng", openLocation ? String.valueOf(CommonAppConfig.getInstance().getLng()) : "")
|
||||
.params("city", openLocation ? CommonAppConfig.getInstance().getCity() : "")
|
||||
@ -186,7 +186,7 @@ public class VideoHttpUtil {
|
||||
* 获取某人发布的视频
|
||||
*/
|
||||
public static void getHomeVideo(String toUid, int p, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.getHomeVideo", VideoHttpConsts.GET_HOME_VIDEO)
|
||||
HttpClient.getInstance().get("ylazhgerenzhuyeshipin", VideoHttpConsts.GET_HOME_VIDEO)
|
||||
.params("touid", toUid)
|
||||
.params("p", p)
|
||||
.execute(callback);
|
||||
@ -197,7 +197,7 @@ public class VideoHttpUtil {
|
||||
* 获取举报内容列表
|
||||
*/
|
||||
public static void getVideoReportList(HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.getReportContentlist", VideoHttpConsts.GET_VIDEO_REPORT_LIST)
|
||||
HttpClient.getInstance().get("ylazhhuoqushipinjubaofenlei", VideoHttpConsts.GET_VIDEO_REPORT_LIST)
|
||||
.execute(callback);
|
||||
}
|
||||
|
||||
@ -205,7 +205,7 @@ public class VideoHttpUtil {
|
||||
* 举报视频接口
|
||||
*/
|
||||
public static void videoReport(String videoId, String reportId, String content, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.report", VideoHttpConsts.VIDEO_REPORT)
|
||||
HttpClient.getInstance().get("ylazhjubaoshipin", VideoHttpConsts.VIDEO_REPORT)
|
||||
.params("videoid", videoId)
|
||||
.params("type", reportId)
|
||||
.params("content", content)
|
||||
@ -216,7 +216,7 @@ public class VideoHttpUtil {
|
||||
* 删除自己的视频
|
||||
*/
|
||||
public static void videoDelete(String videoid, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("Video.del", VideoHttpConsts.VIDEO_DELETE)
|
||||
HttpClient.getInstance().get("ylazhshanchushipin", VideoHttpConsts.VIDEO_DELETE)
|
||||
.params("videoid", videoid)
|
||||
.execute(callback);
|
||||
}
|
||||
@ -227,8 +227,8 @@ public class VideoHttpUtil {
|
||||
public static void setVideoShare(String videoid, HttpCallback callback) {
|
||||
String uid = CommonAppConfig.getInstance().getUid();
|
||||
String s = MD5Util.getMD5(uid + "-" + videoid + "-" + VIDEO_SALT);
|
||||
HttpClient.getInstance().get("Video.addShare", VideoHttpConsts.SET_VIDEO_SHARE)
|
||||
.params("uid", uid, true)
|
||||
HttpClient.getInstance().get("ylazhshipinfenxiang", VideoHttpConsts.SET_VIDEO_SHARE)
|
||||
.params("uid", uid,true)
|
||||
.params("videoid", videoid)
|
||||
.params("random_str", s)
|
||||
.execute(callback);
|
||||
@ -245,8 +245,8 @@ public class VideoHttpUtil {
|
||||
}
|
||||
VideoHttpUtil.cancel(VideoHttpConsts.VIDEO_WATCH_START);
|
||||
String s = MD5Util.getMD5(uid + "-" + videoId + "-" + VIDEO_SALT);
|
||||
HttpClient.getInstance().get("Video.addView", VideoHttpConsts.VIDEO_WATCH_START)
|
||||
.params("uid", uid, true)
|
||||
HttpClient.getInstance().get("ylazhshipinyuedushuleiji", VideoHttpConsts.VIDEO_WATCH_START)
|
||||
.params("uid", uid,true)
|
||||
.params("videoid", videoId)
|
||||
.params("random_str", s)
|
||||
.execute(CommonHttpUtil.NO_CALLBACK);
|
||||
@ -262,8 +262,8 @@ public class VideoHttpUtil {
|
||||
}
|
||||
VideoHttpUtil.cancel(VideoHttpConsts.VIDEO_WATCH_END);
|
||||
String s = MD5Util.getMD5(uid + "-" + videoId + "-" + VIDEO_SALT);
|
||||
HttpClient.getInstance().get("Video.setConversion", VideoHttpConsts.VIDEO_WATCH_END)
|
||||
.params("uid", uid, true)
|
||||
HttpClient.getInstance().get("ylazhgengxinshipinkanwancishu", VideoHttpConsts.VIDEO_WATCH_END)
|
||||
.params("uid", uid,true)
|
||||
.params("videoid", videoId)
|
||||
.params("random_str", s)
|
||||
.execute(CommonHttpUtil.NO_CALLBACK);
|
||||
|
Loading…
Reference in New Issue
Block a user