修改佩戴勋章接口

This commit is contained in:
Martin 2024-07-19 15:44:06 +08:00
parent ba8090eec7
commit 96a6b05d03
3 changed files with 5 additions and 4 deletions

View File

@ -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<HttpCallbackModel>() {
LiveNetManager.get(mContext).userUseDress(
achieveWearModels.get(selectPosition).getUsersDressId(), new HttpCallback<HttpCallbackModel>() {
@Override
public void onSuccess(HttpCallbackModel data) {
ToastUtil.show(data.getMsg());

View File

@ -1292,7 +1292,7 @@ public interface PDLiveApi {
Observable<ResponseModel<MedalAchievementModel>> getGiftHallMedalList(@Query("to_uid") String liveUid,@Query("type")String type);
@GET("/api/public/?service=Dress.userUseDress")
Observable<ResponseModel<List<BaseModel>>> userUseDress(@Query("dress_type") String dress_type,@Query("users_dress_id")String users_dress_id);
Observable<ResponseModel<List<BaseModel>>> userUseDress(@Query("users_dress_id")String users_dress_id);
/**
* 个人展馆

View File

@ -3572,9 +3572,9 @@ public class LiveNetManager {
}).isDisposed();
}
public void userUseDress(String dressType, String usersDressId, HttpCallback<HttpCallbackModel> callback) {
public void userUseDress( String usersDressId, HttpCallback<HttpCallbackModel> callback) {
API.get().pdLiveApi(mContext)
.userUseDress(dressType, usersDressId)
.userUseDress(usersDressId)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Consumer<ResponseModel<List<BaseModel>>>() {