From 96a6b05d034ba8dbf3c611d5185696731f56f775 Mon Sep 17 00:00:00 2001 From: Martin <13046765170@163.com> Date: Fri, 19 Jul 2024 15:44:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=A9=E6=88=B4=E5=8B=8B?= =?UTF-8?q?=E7=AB=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/common/dialog/GiftWallAchieveWearDialog.java | 3 ++- common/src/main/java/com/yunbao/common/http/PDLiveApi.java | 2 +- .../main/java/com/yunbao/common/http/live/LiveNetManager.java | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/dialog/GiftWallAchieveWearDialog.java b/common/src/main/java/com/yunbao/common/dialog/GiftWallAchieveWearDialog.java index 5db59225a..edc95fa09 100644 --- a/common/src/main/java/com/yunbao/common/dialog/GiftWallAchieveWearDialog.java +++ b/common/src/main/java/com/yunbao/common/dialog/GiftWallAchieveWearDialog.java @@ -101,7 +101,8 @@ public class GiftWallAchieveWearDialog extends AbsDialogPopupWindow { @Override public void onClick(View view) { if (achieveWearModels.get(selectPosition).getUseStatus().equals("0") && achieveWearModels.get(selectPosition).getDressStatus().equals("2")) { - LiveNetManager.get(mContext).userUseDress("3", achieveWearModels.get(selectPosition).getUsersDressId(), new HttpCallback() { + LiveNetManager.get(mContext).userUseDress( + achieveWearModels.get(selectPosition).getUsersDressId(), new HttpCallback() { @Override public void onSuccess(HttpCallbackModel data) { ToastUtil.show(data.getMsg()); diff --git a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java index cc1d9b173..29c9817d1 100644 --- a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java +++ b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java @@ -1292,7 +1292,7 @@ public interface PDLiveApi { Observable> getGiftHallMedalList(@Query("to_uid") String liveUid,@Query("type")String type); @GET("/api/public/?service=Dress.userUseDress") - Observable>> userUseDress(@Query("dress_type") String dress_type,@Query("users_dress_id")String users_dress_id); + Observable>> userUseDress(@Query("users_dress_id")String users_dress_id); /** * 个人展馆 diff --git a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java index a06483cde..cc5c69ce6 100644 --- a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java +++ b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java @@ -3572,9 +3572,9 @@ public class LiveNetManager { }).isDisposed(); } - public void userUseDress(String dressType, String usersDressId, HttpCallback callback) { + public void userUseDress( String usersDressId, HttpCallback callback) { API.get().pdLiveApi(mContext) - .userUseDress(dressType, usersDressId) + .userUseDress(usersDressId) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Consumer>>() {