diff --git a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java index fc1f78a04..537b97f59 100644 --- a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java +++ b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java @@ -1143,7 +1143,7 @@ public interface PDLiveApi { Observable> battlePassRule(); @GET("/api/public/?service=Livebattlepass.addChatCount") - Observable>> addChatCount(); + Observable>> addChatCount(@Query("stream") String stream); @GET("/api/public/?service=Sudgameserver.joinMic") Observable>> joinMic(@Query("room_id") String roomId); diff --git a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java index 040407c0d..70354f0e5 100644 --- a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java +++ b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java @@ -2772,9 +2772,9 @@ public class LiveNetManager { }).isDisposed(); } - public void addChatCount(HttpCallback callback) { + public void addChatCount(String stream,HttpCallback callback) { API.get().pdLiveApi(mContext) - .addChatCount() + .addChatCount(stream) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(responseModel -> { diff --git a/live/src/main/java/com/yunbao/live/socket/SocketRyChatUtil.java b/live/src/main/java/com/yunbao/live/socket/SocketRyChatUtil.java index e3e3e2762..655b137fa 100644 --- a/live/src/main/java/com/yunbao/live/socket/SocketRyChatUtil.java +++ b/live/src/main/java/com/yunbao/live/socket/SocketRyChatUtil.java @@ -16,6 +16,7 @@ import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.utils.WordUtil; import com.yunbao.live.R; +import com.yunbao.live.activity.LiveActivity; import org.greenrobot.eventbus.EventBus; @@ -131,7 +132,7 @@ public class SocketRyChatUtil { SocketRyClient.mSocketHandler.processBroadcast(msg.mResult.toString() + ""); } LiveNetManager.get(CommonAppContext.sInstance) - .addChatCount(new com.yunbao.common.http.base.HttpCallback() { + .addChatCount(LiveActivity.mStream,new com.yunbao.common.http.base.HttpCallback() { @Override public void onSuccess(HttpCallbackModel data) { diff --git a/main/src/main/res/layout/view_homemain.xml b/main/src/main/res/layout/view_homemain.xml index 8554ee2ef..04909f460 100644 --- a/main/src/main/res/layout/view_homemain.xml +++ b/main/src/main/res/layout/view_homemain.xml @@ -189,7 +189,7 @@ android:layout_height="wrap_content" android:layout_above="@id/rt_main_tab" android:layout_alignParentRight="true" - android:layout_marginRight="12dp" + android:layout_marginRight="8dp" android:layout_marginBottom="10dp" />