fix bugs.

This commit is contained in:
2025-12-09 15:07:27 +08:00
parent 26a8188fcb
commit 8b9fd2ba08
4 changed files with 11 additions and 5 deletions

View File

@@ -161,7 +161,7 @@ public class CommonAppContext extends MultiDexApplication implements Applicatio
//设置mqtt环境 false 测试环境 true 正式环境
// ExternalResConstants.INSTANCE.setIS_MQTT_RELEASE(false);
//设置http环境 false 测试环境 true 正式环境
ExternalResConstants.INSTANCE.setIS_HTTP_RELEASE(false);
ExternalResConstants.INSTANCE.setIS_HTTP_RELEASE(true);
currentEnvironment = ExternalResConstants.INSTANCE.HTTP_PATH();
initialization();

View File

@@ -402,8 +402,8 @@ public class AgoraManager {
@Override
public void onRemoteAudioStateChanged(int uid, int state, int reason, int elapsed) {
super.onRemoteAudioStateChanged(uid, state, reason, elapsed);
LogUtils.e("onRemoteAudioStateChanged", "uid------>" + uid, "state------>" + state, "reason------>" + reason, "elapsed------>" + elapsed);
if (state == 0){
LogUtils.e("onRemoteAudioStateChanged", "uid------>" + uid, "state------>" + state, "reason------>" + reason, "elapsed------>" + elapsed);
for (SoundLevelUpdateListener listener : soundLevelUpdateListeners) {
if (listener != null) {
// Pk 关闭远端推流

View File

@@ -504,6 +504,11 @@ public class FriendshipRoomFragment extends BaseRoomFragment<FriendshipRoomPrese
if (i == 6 || i == 7)
continue;
RoomPitBean roomPitBean = roomInfoResp.getRoom_info().getPit_list().get(i);
if (roomPitBean.getUser_id() == null || roomPitBean.getUser_id().isEmpty()){
continue;
}
if (Integer.parseInt(roomPitBean.getUser_id()) == message.getText().getFromUserInfo().getUser_id()) {
RoomFriendshipWheatView object = mWheatViews.get(i);
if (object != null) {

View File

@@ -6,6 +6,7 @@ import com.xscm.modulemain.activity.user.conacts.CurrencyExchangeConacts;
import com.xscm.moduleutil.bean.WalletBean;
import com.xscm.moduleutil.bean.WalletConfig;
import com.xscm.moduleutil.http.BaseObserver;
import com.xscm.moduleutil.http.RetrofitClient;
import com.xscm.moduleutil.presenter.BasePresenter;
import java.lang.ref.WeakReference;
@@ -23,7 +24,7 @@ public class CurrencyExchangePresenter extends BasePresenter<CurrencyExchangeCon
@Override
public void exchangeCoin(String earnings_num) {
api.exchangeCoin(earnings_num, new BaseObserver<String>() {
RetrofitClient.getInstance().exchangeCoin(earnings_num, new BaseObserver<String>() {
@Override
public void onSubscribe(Disposable d) {
addDisposable(d);
@@ -41,7 +42,7 @@ public class CurrencyExchangePresenter extends BasePresenter<CurrencyExchangeCon
@Override
public void wallet() {
api.wallet(new BaseObserver<WalletBean>() {
RetrofitClient.getInstance().wallet(new BaseObserver<WalletBean>() {
@Override
public void onSubscribe(Disposable d) {
addDisposable(d);
@@ -59,7 +60,7 @@ public class CurrencyExchangePresenter extends BasePresenter<CurrencyExchangeCon
@Override
public void getWalletConfig() {
api.getWalletConfig(new BaseObserver<WalletConfig>() {
RetrofitClient.getInstance().getWalletConfig(new BaseObserver<WalletConfig>() {
@Override
public void onSubscribe(Disposable d) {
addDisposable(d);