1、更换免费礼物赠送接口

2、更换是否有免费礼物判断字段
3、获取举报主播名称接口更换
This commit is contained in:
老皮 2024-11-01 16:20:55 +08:00
parent a27d033dc6
commit 2ba7e9955d
7 changed files with 22 additions and 6 deletions

View File

@ -12,6 +12,16 @@ public class NewPeopleTaskModel extends BaseModel {
private RewardAllModel rewardAll = new RewardAllModel(); private RewardAllModel rewardAll = new RewardAllModel();
@SerializedName("reward_one") @SerializedName("reward_one")
private RewardAllModel rewardOne = new RewardAllModel(); private RewardAllModel rewardOne = new RewardAllModel();
@SerializedName("is_free_gift")
private String is_free_gift;
public String getIs_free_gift() {
return is_free_gift;
}
public void setIs_free_gift(String is_free_gift) {
this.is_free_gift = is_free_gift;
}
public TaskModel getTask() { public TaskModel getTask() {
return task; return task;

View File

@ -291,7 +291,7 @@ public class LiveHttpUtil {
* 获取被举报人的名字 * 获取被举报人的名字
*/ */
public static void getReportName(int report_id, HttpCallback callback) { public static void getReportName(int report_id, HttpCallback callback) {
HttpClient.getInstance().get("Live.getReportInfo", LiveHttpConsts.GETREPORTINFO) HttpClient.getInstance().get("genjuyonghuidhuoqujubaorennicheng", LiveHttpConsts.GETREPORTINFO)
.params("report_id", report_id) .params("report_id", report_id)
.execute(callback); .execute(callback);
} }
@ -622,10 +622,15 @@ public class LiveHttpUtil {
* 完成新手任務 * 完成新手任務
*/ */
public static void setFrontTask(String type, String liveuid, HttpCallback callback) { public static void setFrontTask(String type, String liveuid, HttpCallback callback) {
HttpClient.getInstance().get("sendFreeGift", "sendFreeGift")
.params("liveuid", liveuid)
.execute(callback);
/*
HttpClient.getInstance().get("shezhixinshouyindaozhuangtai", "shezhixinshouyindaozhuangtai") HttpClient.getInstance().get("shezhixinshouyindaozhuangtai", "shezhixinshouyindaozhuangtai")
.params("type", type) .params("type", type)
.params("liveuid", liveuid) .params("liveuid", liveuid)
.execute(callback); .execute(callback);
*/
} }
/** /**

View File

@ -142,7 +142,9 @@ If you have any supplementary information or proof, you can click to enter the d
startIndex = stringBuilder.toString().length(); startIndex = stringBuilder.toString().length();
stringBuilder.append(userName); stringBuilder.append(userName);
endIndex = stringBuilder.toString().length(); endIndex = stringBuilder.toString().length();
stringBuilder .append("】,我們已對其進行重點觀察,並進一步判定,若發現違規將立刻處理,感謝您的監督~\n如您有任何信息證明補充可點擊進入詳情再次進行提交感謝您對淨化平台環境做出的貢獻"); stringBuilder .append("】,我們已對其進行重點觀察,並進一步判定,若發現違規將立刻處理,感謝您的監督~ ")
.append("\n")
.append("如您有任何信息證明補充,可點擊進入詳情,再次進行提交,感謝您對淨化平台環境做出的貢獻!");
} else { } else {
stringBuilder.append("The user 【"); stringBuilder.append("The user 【");
startIndex = stringBuilder.toString().length(); startIndex = stringBuilder.toString().length();

View File

@ -905,7 +905,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
public void sendGift() { public void sendGift() {
if (mLiveGiftBean.getTag() != null) { if (mLiveGiftBean.getTag() != null) {
if (mCount.equals("1")) { if (mCount.equals("1")) {
LiveHttpUtil.setFrontTask("sendgift", mLiveUid, new HttpCallback() { LiveHttpUtil.setFrontTask("sendFreeGift", mLiveUid, new HttpCallback() {
@Override @Override
public void onSuccess(int code, String msg, String[] info) { public void onSuccess(int code, String msg, String[] info) {
EventBus.getDefault().post("stop_svga_new_user_gif"); EventBus.getDefault().post("stop_svga_new_user_gif");

View File

@ -727,7 +727,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
} }
if (liveGiftModel.getTag() != null) { if (liveGiftModel.getTag() != null) {
if (mCount.equals("1")) { if (mCount.equals("1")) {
LiveHttpUtil.setFrontTask("sendgift", mLiveUid, new HttpCallback() { LiveHttpUtil.setFrontTask("sendFreeGift", mLiveUid, new HttpCallback() {
@Override @Override
public void onSuccess(int code, String msg, String[] info) { public void onSuccess(int code, String msg, String[] info) {
EventBus.getDefault().post("stop_svga_new_user_gif"); EventBus.getDefault().post("stop_svga_new_user_gif");

View File

@ -895,7 +895,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveRoomViewHolder.firstLookLiveNotify(); mLiveRoomViewHolder.firstLookLiveNotify();
} }
//判断是否有免费礼物 //判断是否有免费礼物
if("0".equals(data.getNewPeopleTask().getTask().getSendgift())){ if("0".equals(data.getNewPeopleTask().getIs_free_gift())){
Log.i("xinrenguanbo", "有免费礼物: "); Log.i("xinrenguanbo", "有免费礼物: ");
mLiveRoomViewHolder.firstLook5MinLiveNotify(); mLiveRoomViewHolder.firstLook5MinLiveNotify();

View File

@ -89,7 +89,6 @@
android:layout_marginEnd="10dp" android:layout_marginEnd="10dp"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:text="您舉報的用戶【用戶暱稱】,我們已對其進行重點觀察,並進一步判定,若發現違規將立刻處理,感謝您的監督~"
android:textColor="#ff777777" android:textColor="#ff777777"
android:textSize="11sp" /> android:textSize="11sp" />