购买装扮参数修改
This commit is contained in:
@@ -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();
|
||||
|
@@ -88,7 +88,7 @@ class DecorationCommonFragment : BaseViewBindingFragment<FragmentDecorationCommo
|
||||
) {
|
||||
decorationViewModel.buyDecoration(
|
||||
decorationInfo.dressType,
|
||||
decorationInfo.dressId
|
||||
decorationInfo.id
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@@ -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>>
|
||||
|
||||
|
Reference in New Issue
Block a user