1:修改点唱房歌手头像转圈
2:修改主题展示 3:修改动态详情
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.xscm.moduleutil.bean
|
||||
|
||||
/**
|
||||
* 项目名称:羽声语音
|
||||
* 时间:2025/12/30 18:02
|
||||
* 用途:红包配置信息接口
|
||||
*/
|
||||
class RedPacketConfig {
|
||||
var red_packet_min_amount : Int = 0 //发红包最小金额
|
||||
var red_packet_fee : Int = 0 //发红包手续费
|
||||
}
|
||||
@@ -566,6 +566,9 @@ public interface ApiServer {
|
||||
@GET(Constants.GET_TASKS_MESSAGE)
|
||||
Call<BaseModel<TasksMessage>> getTasksMessage();
|
||||
|
||||
@GET(Constants.GET_REDPACKET_CONFIG)
|
||||
Call<BaseModel<RedPacketConfig>> getRedpacketConfig();
|
||||
|
||||
@FormUrlEncoded
|
||||
@POST(Constants.REDPACKET_CREATE)
|
||||
Call<ResponseBody> redPacketCreate(@Field("type") int type, @Field("password") String password, @Field("coin_type") int coin_type, @Field("total_amount") String total_amount,
|
||||
|
||||
@@ -2989,6 +2989,33 @@ public class RetrofitClient {
|
||||
});
|
||||
}
|
||||
|
||||
public void getRedpacketConfig(BaseObserver<RedPacketConfig> observer) {
|
||||
sApiServer.getRedpacketConfig().enqueue(new Callback<BaseModel<RedPacketConfig>>(){
|
||||
|
||||
@Override
|
||||
public void onResponse(Call<BaseModel<RedPacketConfig>> call, Response<BaseModel<RedPacketConfig>> response) {
|
||||
if (response.code() == 200) {
|
||||
BaseModel<RedPacketConfig> redPacketConfigBaseModel = response.body();
|
||||
if (redPacketConfigBaseModel.getCode() == 1) {
|
||||
observer.onNext(redPacketConfigBaseModel.getData());
|
||||
} else if (redPacketConfigBaseModel.getCode() == 0) {
|
||||
} else if (redPacketConfigBaseModel.getCode() == 301) {
|
||||
setCode301(redPacketConfigBaseModel.getMsg());
|
||||
}
|
||||
} else {
|
||||
ToastUtils.showLong("红包配置信息接口异常", response.code());
|
||||
LogUtils.e("红包配置信息接口", response.message());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(Call<BaseModel<RedPacketConfig>> call, Throwable t) {
|
||||
LogUtils.e("红包配置信息接口", t.fillInStackTrace());
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public void redPacketCreate(int type, String password, int coin_type,
|
||||
String total_amount, String total_count, String conditions,
|
||||
String countdown, String room_id, String remark, BaseObserver<String> observer) {
|
||||
|
||||
@@ -274,6 +274,7 @@ public class Constants {
|
||||
public static final String GET_GIVE_GIFT = "/api/Gift/chat_gift_send";//聊天送礼物
|
||||
public static final String GET_WALLET = "/api/UserWallet/wallet";//钱包
|
||||
public static final String GET_TASKS_MESSAGE = "/api/Tasks/dailyTasksUnReceiveCount";//【新】未领取奖励任务数量
|
||||
public static final String GET_REDPACKET_CONFIG = "/api/Redpacket/appConfig";//红包配置信息接口
|
||||
public static final String REDPACKET_CREATE = "/api/Redpacket/create";//创建红包
|
||||
public static final String ROOM_REDPACKET = "/api/Redpacket/roomRedPackets";//红包列表
|
||||
|
||||
|
||||
12
BaseModule/src/main/res/drawable/layer_drawable.xml
Normal file
12
BaseModule/src/main/res/drawable/layer_drawable.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@mipmap/za_maiw_b" />
|
||||
<item>
|
||||
|
||||
<inset android:insetLeft="10dp">
|
||||
<bitmap
|
||||
android:gravity="start"
|
||||
android:src="@mipmap/jinb" />
|
||||
</inset>
|
||||
</item>
|
||||
</layer-list>
|
||||
Reference in New Issue
Block a user