修改佩戴勋章接口
This commit is contained in:
parent
ba8090eec7
commit
96a6b05d03
@ -101,7 +101,8 @@ public class GiftWallAchieveWearDialog extends AbsDialogPopupWindow {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
if (achieveWearModels.get(selectPosition).getUseStatus().equals("0") && achieveWearModels.get(selectPosition).getDressStatus().equals("2")) {
|
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
|
@Override
|
||||||
public void onSuccess(HttpCallbackModel data) {
|
public void onSuccess(HttpCallbackModel data) {
|
||||||
ToastUtil.show(data.getMsg());
|
ToastUtil.show(data.getMsg());
|
||||||
|
@ -1292,7 +1292,7 @@ public interface PDLiveApi {
|
|||||||
Observable<ResponseModel<MedalAchievementModel>> getGiftHallMedalList(@Query("to_uid") String liveUid,@Query("type")String type);
|
Observable<ResponseModel<MedalAchievementModel>> getGiftHallMedalList(@Query("to_uid") String liveUid,@Query("type")String type);
|
||||||
|
|
||||||
@GET("/api/public/?service=Dress.userUseDress")
|
@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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 个人展馆
|
* 个人展馆
|
||||||
|
@ -3572,9 +3572,9 @@ public class LiveNetManager {
|
|||||||
}).isDisposed();
|
}).isDisposed();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void userUseDress(String dressType, String usersDressId, HttpCallback<HttpCallbackModel> callback) {
|
public void userUseDress( String usersDressId, HttpCallback<HttpCallbackModel> callback) {
|
||||||
API.get().pdLiveApi(mContext)
|
API.get().pdLiveApi(mContext)
|
||||||
.userUseDress(dressType, usersDressId)
|
.userUseDress(usersDressId)
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(new Consumer<ResponseModel<List<BaseModel>>>() {
|
.subscribe(new Consumer<ResponseModel<List<BaseModel>>>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user