From 346b535757356845de2fe16c4ded464b76e6ee65 Mon Sep 17 00:00:00 2001
From: wushaocheng <15876365887@163.com>
Date: Thu, 10 Aug 2023 17:32:10 +0800
Subject: [PATCH] =?UTF-8?q?[Modify]=E4=BF=AE=E5=BE=A9=E5=85=AC=E6=9C=83?=
=?UTF-8?q?=E6=95=B8=E6=93=9A=E5=92=8Ctrtc=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../erban/application/XChatApplication.java | 2 +
.../erban/ui/im/chat/MsgViewHolderText.java | 11 ++++
.../main/res/layout/im_customer_msg_text.xml | 32 ++++++++--
app/src/main/res/values/strings.xml | 2 +-
.../hall/activity/ModuleHallActivity.java | 2 +
.../hall/activity/RoomIncomeActivity.java | 17 ++++--
.../income/adapter/HallIncomeAdapter.java | 2 +-
.../income/adapter/IncomeAdapter.java | 18 +-----
.../income/adapter/LiveIncomeAdapter.java | 5 +-
.../presenter/IncomeStatisticsPresenter.java | 19 ++----
.../res/layout/activity_module_clan.xml | 8 +--
.../res/layout/item_clan_income.xml | 18 +-----
.../res/layout/item_hall_income.xml | 14 ++---
.../res/layout/item_live_income.xml | 15 +++--
.../manager/trtc/SDKConfig.java | 2 +-
.../interceptor/MyOkHttpRetryInterceptor.java | 60 +++++++++++++++++++
.../net/rxnet/manager/RxNetManager.java | 2 +
17 files changed, 150 insertions(+), 79 deletions(-)
create mode 100644 core/src/main/java/com/yizhuan/xchat_android_core/interceptor/MyOkHttpRetryInterceptor.java
diff --git a/app/src/main/java/com/yizhuan/erban/application/XChatApplication.java b/app/src/main/java/com/yizhuan/erban/application/XChatApplication.java
index fe08059e7..34166741e 100644
--- a/app/src/main/java/com/yizhuan/erban/application/XChatApplication.java
+++ b/app/src/main/java/com/yizhuan/erban/application/XChatApplication.java
@@ -63,6 +63,7 @@ import com.yizhuan.xchat_android_core.gift.GiftModel;
import com.yizhuan.xchat_android_core.im.custom.bean.CustomAttachment;
import com.yizhuan.xchat_android_core.im.custom.bean.OpenSignInAttachment;
import com.yizhuan.xchat_android_core.initial.InitialModel;
+import com.yizhuan.xchat_android_core.interceptor.MyOkHttpRetryInterceptor;
import com.yizhuan.xchat_android_core.interceptor.NoParamsInterceptor;
import com.yizhuan.xchat_android_core.interceptor.ParamsInterceptor;
import com.yizhuan.xchat_android_core.manager.IMMessageManager;
@@ -401,6 +402,7 @@ public class XChatApplication extends BaseApp {
.setBaseUrl(url)
.addInterceptors(new ParamsInterceptor(httpParams))
.addInterceptors(new NoParamsInterceptor())//注意:拦截器的添加顺序,请求的拦截顺序
+// .addInterceptors(new MyOkHttpRetryInterceptor())
.certificates()
.build();
//单例的model 初始化
diff --git a/app/src/main/java/com/yizhuan/erban/ui/im/chat/MsgViewHolderText.java b/app/src/main/java/com/yizhuan/erban/ui/im/chat/MsgViewHolderText.java
index b5bacd1fb..180bc02b1 100644
--- a/app/src/main/java/com/yizhuan/erban/ui/im/chat/MsgViewHolderText.java
+++ b/app/src/main/java/com/yizhuan/erban/ui/im/chat/MsgViewHolderText.java
@@ -4,6 +4,7 @@ import static com.yizhuan.xchat_android_core.UriProvider.IM_SERVER_URL;
import static com.yizhuan.xchat_android_core.im.custom.bean.CustomAttachment.CUSTOM_MESS_SUB_CAR_EXPIRE;
import android.text.style.ForegroundColorSpan;
+import android.view.View;
import android.widget.TextView;
import com.netease.nim.uikit.business.session.viewholder.MsgViewHolderBase;
@@ -41,6 +42,7 @@ import java.util.Map;
*/
public class MsgViewHolderText extends MsgViewHolderBase {
private TextView mTvMsg;
+ private TextView mTvSee;
private NobleAttachment mNobleAttachment;
private CarAttachment mCarAttachment;
private AssistantAttachment awardAttachment;
@@ -58,12 +60,21 @@ public class MsgViewHolderText extends MsgViewHolderBase {
@Override
protected void inflateContentView() {
mTvMsg = findViewById(R.id.tv_msg);
+ mTvSee = findViewById(R.id.tv_see);
}
@Override
protected void bindContentView() {
CharSequence text = "";
MsgAttachment attachment = message.getAttachment();
+ if(attachment instanceof AssistantAttachment){
+ awardAttachment = (AssistantAttachment) attachment;
+ if(awardAttachment.routerValue != null){
+ mTvSee.setVisibility(View.VISIBLE);
+ }
+ }else {
+ mTvSee.setVisibility(View.GONE);
+ }
if (attachment instanceof CarAttachment) {
mCarAttachment = (CarAttachment) attachment;
text = mCarAttachment.msg;
diff --git a/app/src/main/res/layout/im_customer_msg_text.xml b/app/src/main/res/layout/im_customer_msg_text.xml
index 1440f8d78..2252c434e 100644
--- a/app/src/main/res/layout/im_customer_msg_text.xml
+++ b/app/src/main/res/layout/im_customer_msg_text.xml
@@ -1,10 +1,32 @@
-
\ No newline at end of file
+ android:orientation="vertical"
+ tools:text="@string/layout_im_customer_msg_text_01" >
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 595f1797e..58b928995 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -967,7 +967,7 @@
充值鉆石
貴族中心
開通立享各項特權
- 我的公會
+ 公会·房间
加入公會
個人中心
我的房間
diff --git a/app/src/module_labour_union/java/com/yizhuan/erban/module_hall/hall/activity/ModuleHallActivity.java b/app/src/module_labour_union/java/com/yizhuan/erban/module_hall/hall/activity/ModuleHallActivity.java
index 195e900be..37a370bda 100644
--- a/app/src/module_labour_union/java/com/yizhuan/erban/module_hall/hall/activity/ModuleHallActivity.java
+++ b/app/src/module_labour_union/java/com/yizhuan/erban/module_hall/hall/activity/ModuleHallActivity.java
@@ -99,6 +99,8 @@ public class ModuleHallActivity extends BaseMvpActivity