互娱麦圈 and 聊天框问题。
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,12 @@ public final class DataLogger implements DataLoggingInterceptor.Logger {
|
||||
if (message.startsWith(DataLoggingInterceptor.sLogEndFlag)) {
|
||||
if (mMessage.toString().contains("Xintiao/keep_xintiao"))
|
||||
return;
|
||||
LogUtils.d(mMessage.toString());
|
||||
try {
|
||||
LogUtils.d(mMessage.toString());
|
||||
} catch (StringIndexOutOfBoundsException e) {
|
||||
// 处理异常,记录日志或使用默认值
|
||||
LogUtils.e("打印 JSON 数据时出错:" + e.getMessage());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -75,8 +80,11 @@ public final class DataLogger implements DataLoggingInterceptor.Logger {
|
||||
message = formatJson(decodeUnicode(message));
|
||||
}
|
||||
// 追加消息
|
||||
try { mMessage.append(message.concat("\n"));
|
||||
} catch (Exception ignored) {}
|
||||
try {
|
||||
mMessage.append(message.concat("\n"));
|
||||
} catch (Exception ignored) {
|
||||
LogUtils.e("打印 JSON append时出错:" + ignored.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
android:id="@+id/riv"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -35,6 +36,7 @@
|
||||
android:layout_marginEnd="-4dp"
|
||||
android:layout_marginTop="-4dp"
|
||||
android:layout_marginBottom="-4dp"
|
||||
android:adjustViewBounds="true"
|
||||
app:layout_constraintStart_toStartOf="@id/riv"
|
||||
app:layout_constraintEnd_toEndOf="@id/riv"
|
||||
app:layout_constraintTop_toTopOf="@id/riv"
|
||||
@@ -45,9 +47,9 @@
|
||||
android:id="@+id/iv_ripple"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
app:autoPlay="false"
|
||||
app:layout_constraintHeight_percent="0.95"
|
||||
app:layout_constraintWidth_percent="1"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintBottom_toBottomOf="@id/iv_frame"
|
||||
app:layout_constraintEnd_toEndOf="@id/iv_frame"
|
||||
app:layout_constraintStart_toStartOf="@id/iv_frame"
|
||||
|
||||
Reference in New Issue
Block a user