[Modify]夺宝精灵修改

This commit is contained in:
wushaocheng
2023-09-12 10:03:24 +08:00
parent 7548b4174a
commit 63f1e02c6f
28 changed files with 182 additions and 64 deletions

View File

@@ -49,6 +49,8 @@ public class HomeRoomInfo implements MultiItemEntity, Serializable {
private String failContext;
private boolean isPick;
private boolean needOpenSelfRoom;
private int isWeekTop1;
private int isHourTop1;
@Override
public int getItemType() {

View File

@@ -96,6 +96,9 @@ object TreasureFairyModel {
api.getExchangeRecord(convertType, page, pageSize)
}
suspend fun buyDebris(num: String, uid: String): String? = launchRequest {
api.buyDebris(num, uid)
}
private interface Api {
@@ -259,6 +262,18 @@ object TreasureFairyModel {
@Query("page") page: Int,
@Query("pageSize") pageSize: Int
): ServiceResult<List<ExchangeGiftInfo>>
/**
* 购买精灵碎片
*
*/
@FormUrlEncoded
@POST("/act/seize-treasure/shard/buy")
suspend fun buyDebris(
@Field("num") num: String,
@Field("uid") uid: String
): ServiceResult<String>
}
}