This commit is contained in:
level 2025-06-12 16:52:58 +08:00
parent 2c29aa6324
commit f8a3ff8d7c
7 changed files with 28 additions and 11 deletions

View File

@ -93,10 +93,10 @@ class NetService private constructor() : INetService {
// .sslSocketFactory(getSSLSocketFactory(), CustomTrustManager())//信任所有证书
.sslSocketFactory(getSSLSocketFactory(), trustAllCerts[0] as X509TrustManager)
.hostnameVerifier(getHostnameVerifier()!!)
// if (BuildConfig.DEBUG) {
// builder.addInterceptor(loggingInterceptor)
// }
builder.addInterceptor(loggingInterceptor)
if (BuildConfig.DEBUG) {
builder.addInterceptor(loggingInterceptor)
}
// builder.addInterceptor(loggingInterceptor)
return builder.build()
}

View File

@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="25dp"
android:height="25dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:pathData="M914.7,319.1c50.7,0 92.1,40.9 92.1,90.6v352.9a91.9,91.9 0,0 1,-85 91.9l-7.1,0.2 -4.3,4.3 -0.6,96.4a28.2,28.2 0,0 1,-27.9 28,28 28,0 0,1 -19.5,-8.5l-118,-119 -150.2,-1.3a27.6,27.6 0,0 1,-19.5 -47,27.3 27.3,0 0,1 19.5,-8h160.5a27.9,27.9 0,0 1,20 8l73.4,72.8 7.4,-3v-50.3a27.3,27.3 0,0 1,27.5 -27.5h32.3a36,36 0,0 0,36.2 -36.1V410.2a36.4,36.4 0,0 0,-31.6 -35.8l-4.6,-0.3a28.1,28.1 0,0 1,-27.9 -27.5,27.3 27.3,0 0,1 27.4,-27.5z"
android:fillColor="#FF8A04"/>
<path
android:pathData="M721.8,177.7L145.2,177.7a40.3,40.3 0,0 0,-40.2 40.2v416.5a40.3,40.3 0,0 0,40.2 40.2h56.9l-0.5,154.7 144.7,-154.7h375.3a39.9,39.9 0,0 0,40.1 -39.7L761.9,217.9a40.3,40.3 0,0 0,-40 -40.2zM721.8,121.4a96.7,96.7 0,0 1,96.4 96.4v417c0,52.9 -43.1,96 -96.4,96L370.9,730.8l-170.3,182.1a32.2,32.2 0,0 1,-23.6 10.2,31.2 31.2,0 0,1 -31.9,-31.8l0.6,-160.5h-0.6a96.7,96.7 0,0 1,-96.4 -96.4L48.8,217.8a96.7,96.7 0,0 1,96.4 -96.4h576.6z"
android:fillColor="#FF8A04"/>
<path
android:pathData="M365.3,374.7a8,8 0,0 0,-7.5 5.1l-29,74.5a7.6,7.6 0,0 0,3.9 9.6c1.1,0.6 2.3,0.9 3.6,0.8h56.8a8.1,8.1 0,0 0,6.4 -3.1,7.6 7.6,0 0,0 1.1,-7.2l-27.8,-74.6a7.9,7.9 0,0 0,-7.6 -5.1zM366.3,255.7a28.2,28.2 0,0 1,26.7 17.5l106.6,286.9c4.6,13 -3.3,27.5 -17.7,32a29.1,29.1 0,0 1,-9.3 1.5,28.3 28.3,0 0,1 -26.7,-17.1l-20.5,-55.2a8.1,8.1 0,0 0,-7.5 -5.1L310.2,516.2a8,8 0,0 0,-7.6 5l-21.7,55.7a28.1,28.1 0,0 1,-26.2 15.9,31.5 31.5,0 0,1 -9.7,-1.5c-14.3,-4.8 -21.8,-18.8 -17.3,-31.9l112,-286.7c4,-10.1 14.6,-17.1 26.6,-17.1zM582,256c15.7,0 28.3,11.2 28.3,24.6v286.2c-0.1,13.4 -12.7,24.6 -28.3,24.6s-28.3,-11.2 -28.3,-24.6L553.6,280.7c0,-13.5 12.6,-24.7 28.3,-24.7z"
android:fillColor="#FF8A04"/>
</vector>

View File

@ -74,10 +74,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/delayDefault"
android:backgroundTint="@color/white"
android:backgroundTint="#FF8A04"
android:background="#FF8A04"
android:layout_marginEnd="20dp"
android:layout_marginBottom="20dp"
android:src="@drawable/deepseek_orange"
android:src="@drawable/ai_chat"
android:tint="#FF8A04"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
@ -495,7 +497,7 @@
android:id="@+id/ivDepSeek"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/deepseek_orange"
android:src="@drawable/ai_chat"
android:padding="5dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"

View File

@ -394,5 +394,5 @@ Service Description\n
<string name="delayDefault">Delay 28ms</string>
<string name="RecommendedRoutes">Recommended route</string>
<string name="timeOut">Route timeout</string>
<string name="deepSeekStr">DeepSeek intelligent assistant</string>
<string name="deepSeekStr">AI Chat</string>
</resources>

View File

@ -384,5 +384,5 @@
<string name="delayDefault">延遲28ms</string>
<string name="RecommendedRoutes">推薦線路</string>
<string name="timeOut">線路超時</string>
<string name="deepSeekStr">DeepSeek智能助手</string>
<string name="deepSeekStr">AI 聊天</string>
</resources>

View File

@ -382,5 +382,5 @@
<string name="delayDefault">延遲28ms</string>
<string name="RecommendedRoutes">推薦線路</string>
<string name="timeOut">線路超時</string>
<string name="deepSeekStr">DeepSeek智能助手</string>
<string name="deepSeekStr">AI 聊天</string>
</resources>

View File

@ -408,5 +408,5 @@
<string name="delayDefault">延迟28ms</string>
<string name="RecommendedRoutes">推荐线路</string>
<string name="timeOut">线路超时</string>
<string name="deepSeekStr">DeepSeek智能助手</string>
<string name="deepSeekStr">AI聊天</string>
</resources>