购买装扮参数修改

This commit is contained in:
huangjian
2022-08-04 19:00:27 +08:00
parent 0ab9d2d56e
commit b73777f32f
3 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ public class DecorationHelper {
true,
() -> {
dialogManager.showProgressDialog(context);
DecorationModel.INSTANCE.sendDecoration(decorationInfo.getDressType(), decorationInfo.getDressId(), targetUid)
DecorationModel.INSTANCE.sendDecoration(decorationInfo.getDressType(), decorationInfo.getId(), targetUid)
.compose(RxHelper.bindContext(context))
.subscribe(s -> {
dialogManager.dismissDialog();

View File

@@ -88,7 +88,7 @@ class DecorationCommonFragment : BaseViewBindingFragment<FragmentDecorationCommo
) {
decorationViewModel.buyDecoration(
decorationInfo.dressType,
decorationInfo.dressId
decorationInfo.id
)
}
}

View File

@@ -52,7 +52,7 @@ object DecorationModel : BaseModel() {
@POST("/dress/shop/buy")
suspend fun buyDecoration(
@Field("dressType") dressType: Int,
@Field("dressId") dressId: Int
@Field("id") id: Int
): ServiceResult<String>
/**
@@ -64,7 +64,7 @@ object DecorationModel : BaseModel() {
@POST("/dress/shop/give")
fun sendDecoration(
@Field("dressType") dressType: Int,
@Field("dressId") dressId: Int,
@Field("id") id: Int,
@Field("targetUid") targetUid: Long,
): Single<ServiceResult<String>>