1:优化服务地址

2:修改盲盒转盘声音,修改成0.2
3:修改红包声音,0.2
4:修改巡乐会,最后出现的空白
5:优化一键赠送背包礼物的时候,连续点击后,出现的错误
7:修改打包的应用图标
This commit is contained in:
2026-01-13 16:04:21 +08:00
parent 0fd8ecd73d
commit 8f4c2d1b83
10 changed files with 34 additions and 28 deletions

View File

@@ -5556,8 +5556,7 @@ public class RetrofitClient {
}
/// 巡乐会抽奖
public void xlhChou(String roomId, String
num, BaseObserver<List<XlhDrawBean>> observer) {
public void xlhChou(String roomId, String num, BaseObserver<List<XlhDrawBean>> observer) {
sApiServer.xlhChou(roomId, num).enqueue(new Callback<BaseModel<List<XlhDrawBean>>>() {
@Override
public void onResponse(Call<BaseModel<List<XlhDrawBean>>> call, Response<BaseModel<List<XlhDrawBean>>> response) {
@@ -5570,7 +5569,7 @@ public class RetrofitClient {
} else if (baseModel.getCode() == 301) {
setCode301(baseModel.getMsg());
} else {
observer.onNext(new ArrayList<>());
// observer.onNext(new ArrayList<>());
ToastUtils.showShort(baseModel.getMsg());
}

View File

@@ -197,7 +197,7 @@ public class AgoraManager {
config.mAppId = appId;
config.mEventHandler = getDefaultEventHandler();
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
config.mAudioScenario = Constants.AUDIO_SCENARIO_CHORUS;
config.mAudioScenario = Constants.AUDIO_SCENARIO_GAME_STREAMING;
config.mAreaCode = 1;
rtcEngine = (RtcEngineEx) RtcEngine.create(config);

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@@ -749,6 +749,7 @@ public abstract class BaseMvpActivity<P extends IPresenter, VDB extends ViewData
isRedPacketMediaPrepared = true;
mp.start();
});
redPacketMediaPlayer.setVolume(0.2f, 0.2f); // 设置音量
redPacketMediaPlayer.setOnCompletionListener(mp -> {
// 播放完成后重置,以便下次重新播放
try {

View File

@@ -1661,6 +1661,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
private fun goneAll() {
if (mRoomInfoResp?.room_info?.label_id == "11") {
mBinding?.clDayTask?.visibility= View.GONE
mBinding?.xlhRk?.visibility= View.GONE
}else{
mBinding?.clDayTask?.visibility= View.VISIBLE
}

View File

@@ -759,6 +759,7 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
// 从assets目录加载音频文件
AssetFileDescriptor afd = getContext().getAssets().openFd(fileName);
player = new MediaPlayer();
player.setVolume(0.2f,0.2f);
player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
player.prepare();
} catch (IOException e) {

View File

@@ -472,8 +472,10 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
"确认",
"取消",
v -> {
if (gifyuseradapter.getUserIdToString() != null) {
// 点击“确认”按钮时执行删除操作
MvpPre.getGiftPack(roomId, gifyuseradapter.getUserIdToString(), heart_id, auction_id);
}
},
v -> {
// 点击“取消”按钮时什么都不做
@@ -597,7 +599,9 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
}
return currentItem;
}
private String gift_bag = "";
private void giveGift(String num) {
getSelectedGift();
int currentItem = mBinding.viewPager.getCurrentItem();

View File

@@ -55,15 +55,15 @@ android {
// 正式版包名使用基础包名com.example.myapp
applicationIdSuffix ""
// // 测试版包名:基础包名 + .betacom.example.myapp.beta
// applicationIdSuffix ".beta.b"
applicationIdSuffix ".beta"
// 【正式版应用名称】通过resValue动态生成string资源
resValue "string", "app_name", "羽声语音"
resValue "string", "app_name", "羽声内测"
// resValue "string", "app_name", "羽声语音APP"
// 【正式版图标】替换manifest中的占位符使用main目录下的正式图标
manifestPlaceholders = [
appIcon: "@mipmap/ic_launcher" // 需在main/res/mipmap放置该图标
appIcon: "@mipmap/icon_nc" // 需在main/res/mipmap放置该图标
]
}
@@ -80,7 +80,7 @@ android {
//
// // 【测试版图标】替换为测试专用图标
manifestPlaceholders = [
appIcon: "@mipmap/ic_launcher_app_bat" // 需在main/res/mipmap放置该图标
appIcon: "@mipmap/icon_nc" // 需在main/res/mipmap放置该图标
]
}
}

View File

@@ -128,7 +128,7 @@
android:enableOnBackInvokedCallback="true"
android:extractNativeLibs="true"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher_app"
android:icon="${appIcon}"
android:label="@string/app_name"
android:largeHeap="true"
android:screenOrientation="portrait"

View File

@@ -310,12 +310,12 @@ public class PasswordLoginActivity extends BaseMvpActivity<LoginPresenter, Activ
}
if (TextUtils.isEmpty(CommonAppContext.getInstance().getToken()) || TextUtils.isEmpty(CommonAppContext.getInstance().getUser().getTencent_im())) {
Logger.e("SplashEnd", "ARouters.CODE_LOGIN");
if (canOnePass) {
phoneNumberAuthHelper.setAuthListener(tokenResultListener);
doOnePass();
} else {
}
// if (canOnePass) {
// phoneNumberAuthHelper.setAuthListener(tokenResultListener);
// doOnePass();
// } else {
//
// }
} else {
Logger.e("SplashEnd", "ARouters.MAIN");