更改客服

This commit is contained in:
level 2025-06-10 18:11:52 +08:00
parent f7b19b0a86
commit e1c656ab26
8 changed files with 98 additions and 11 deletions

View File

@ -68,6 +68,7 @@ import com.cncat.vpn.service.remote.IClashManager
import com.cncat.vpn.service.remote.ILogObserver
import com.cncat.vpn.service.remote.IProfileManager
import com.cncat.vpn.service.remote.wrap
import com.google.android.material.floatingactionbutton.FloatingActionButton
import com.yingmao.clash.entity.BannerImgBean
import com.yingmao.clash.fragment.NewAccFragment.Companion.CHECK_NODE_REQUEST_CODE
import com.yingmao.clash.net.http.entity.ExpensesRecordRsp
@ -130,6 +131,8 @@ class NewMainActivity : BaseActivity() {
private var homeActivityDialog: HomeActivityDialog? = null
private var timer: Timer? = null
private var u_timerTask: TimerTask? = null
private lateinit var clDeepSeek:ConstraintLayout
private lateinit var floating:FloatingActionButton
companion object {
//记录心跳失败次数
var HEART_BEAT_FAILURE_FREQUENCY = 0
@ -717,6 +720,8 @@ class NewMainActivity : BaseActivity() {
containerVP.adapter = MainVPAdapter(fragments, supportFragmentManager, lifecycle)
containerVP.isUserInputEnabled = false
clHomeRecharge=findViewById(R.id.clHomeRecharge)
clDeepSeek=findViewById(R.id.clDeepSeek)
floating=findViewById(R.id.floating)
tv_exit=findViewById(R.id.tv_exit)
clSing=findViewById(R.id.clSing)
clSing.setOnClickListener {
@ -730,6 +735,13 @@ class NewMainActivity : BaseActivity() {
cleanUserInfo()
finish()
}
clDeepSeek.setOnClickListener {
startActivity(Intent(this, CustomerServiceWebView::class.java))
drawer.close()
}
floating.setOnClickListener {
startActivity(Intent(this, CustomerServiceWebView::class.java))
}
setSometion()
}

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="25dp"
android:height="20dp"
android:viewportWidth="1391"
android:viewportHeight="1024">
<path
android:fillColor="#FF8A04"
android:pathData="M1290.5,134.3c-12.1,-6.1 -17.4,5.5 -24.5,11.4 -2.4,1.9 -4.5,4.4 -6.5,6.6 -17.7,19.3 -38.5,32.1 -65.6,30.5 -39.6,-2.3 -73.4,10.4 -103.3,41.3 -6.4,-38.1 -27.5,-60.9 -59.6,-75.5 -16.8,-7.6 -33.8,-15.2 -45.6,-31.7 -8.2,-11.8 -10.4,-24.8 -14.6,-37.7 -2.6,-7.8 -5.2,-15.7 -14,-17.1 -9.6,-1.5 -13.3,6.6 -17,13.5 -14.9,27.9 -20.7,58.6 -20.2,89.7 1.3,70 30.3,125.8 87.8,165.4 6.5,4.6 8.2,9.1 6.2,15.7 -3.9,13.7 -8.6,26.9 -12.7,40.6 -2.6,8.7 -6.5,10.6 -15.7,6.8 -31.6,-13.5 -58.8,-33.4 -82.9,-57.5 -40.9,-40.4 -77.9,-85 -124,-119.9a545.3,545.3 0,0 0,-32.9 -23c-47.1,-46.7 6.2,-85 18.5,-89.5 12.9,-4.7 4.5,-21.1 -37.2,-20.9s-79.8,14.4 -128.3,33.4c-7.1,2.8 -14.6,4.9 -22.2,6.6 -44.1,-8.5 -89.9,-10.4 -137.7,-4.9 -90,10.2 -161.9,53.7 -214.8,127.8 -63.5,89.1 -78.5,190.4 -60.1,296.1 19.2,111.3 74.9,203.5 160.4,275.6 88.7,74.7 190.9,111.3 307.4,104.3 70.8,-4.2 149.6,-13.8 238.5,-90.7 22.4,11.4 46,15.9 85,19.3 30.1,2.8 59,-1.5 81.4,-6.3 35.1,-7.6 32.7,-40.8 20,-46.8 -102.9,-48.9 -80.3,-29 -100.9,-45.1 52.3,-63.2 131.1,-128.8 161.9,-341.4 2.4,-16.9 0.4,-27.5 0,-41.2 -0.2,-8.3 1.7,-11.6 11,-12.5 25.8,-3 50.8,-10.2 73.8,-23.1 66.7,-37.2 93.6,-98.3 99.9,-171.5 0.9,-11.2 -0.2,-22.8 -11.8,-28.6M709.4,793.2c-99.7,-80 -148.1,-106.4 -168.1,-105.3 -18.7,1.1 -15.3,23 -11.2,37.2 4.3,14 9.9,23.7 17.8,36 5.4,8.2 9.2,20.3 -5.4,29.4 -32.1,20.3 -88,-6.8 -90.6,-8.2 -65,-39.1 -119.4,-90.7 -157.7,-161.2 -37,-67.9 -58.4,-140.7 -62,-218.5 -0.9,-18.8 4.5,-25.4 22.8,-28.8a220.5,220.5 0,0 1,73 -1.9c101.8,15.2 188.5,61.6 261.1,135.2 41.5,41.9 72.8,92 105.2,140.9 34.4,52 71.3,101.5 118.4,142.1 16.6,14.2 29.9,25 42.6,33 -38.3,4.4 -102.2,5.3 -145.9,-30m47.8,-313.9c0,-8.3 6.5,-15 14.8,-15q2.8,0 5,0.9a14.9,14.9 0,0 1,9.5 14,14.8 14.8,0 0,1 -14.7,15 14.6,14.6 0,0 1,-14.6 -15m148.5,77.8c-9.5,4 -19,7.4 -28.2,7.8 -14.2,0.8 -29.7,-5.1 -38.1,-12.3 -13.1,-11.2 -22.4,-17.5 -26.3,-37 -1.7,-8.3 -0.8,-21.2 0.7,-28.6 3.4,-15.9 -0.4,-26.2 -11.4,-35.5 -9,-7.6 -20.4,-9.7 -32.9,-9.7 -4.7,0 -9,-2.1 -12.1,-3.8a12.4,12.4 0,0 1,-5.4 -17.4c1.3,-2.7 7.7,-9.1 9.2,-10.2 17,-9.9 36.6,-6.6 54.7,0.8 16.8,7 29.5,19.9 47.8,38.1 18.7,22 22,28.1 32.7,44.6 8.4,12.9 16.1,26.2 21.3,41.3 3.2,9.5 -0.9,17.3 -11.9,22" />
</vector>

View File

@ -1,11 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="40dp"
android:height="40dp"
android:viewportWidth="64"
android:viewportHeight="64">
<path
android:fillColor="#FF8A04"
android:pathData="M51.851,28.931C51.694,28.06 50.855,27.174 49.984,26.978L49.333,26.829C47.804,26.366 46.448,25.355 45.585,23.865C44.723,22.367 44.519,20.666 44.895,19.105L45.099,18.493C45.358,17.646 45.02,16.478 44.338,15.898C44.338,15.898 43.727,15.38 42.001,14.384C40.276,13.396 39.531,13.122 39.531,13.122C38.692,12.816 37.516,13.106 36.904,13.757L36.45,14.243C35.289,15.341 33.728,16.008 32.003,16.008C30.278,16.008 28.702,15.333 27.542,14.228L27.102,13.757C26.498,13.106 25.315,12.816 24.475,13.122C24.475,13.122 23.723,13.396 21.997,14.384C20.272,15.388 19.668,15.906 19.668,15.906C18.986,16.478 18.649,17.639 18.908,18.493L19.096,19.113C19.465,20.673 19.269,22.367 18.406,23.865C17.543,25.362 16.171,26.382 14.635,26.837L14.007,26.978C13.145,27.174 12.298,28.052 12.141,28.931C12.141,28.931 12,29.715 12,31.706C12,33.698 12.141,34.482 12.141,34.482C12.298,35.361 13.137,36.239 14.007,36.435L14.619,36.576C16.156,37.031 17.536,38.05 18.399,39.556C19.261,41.054 19.465,42.755 19.089,44.316L18.909,44.919C18.65,45.766 18.987,46.935 19.669,47.515C19.669,47.515 20.281,48.033 22.006,49.028C23.731,50.024 24.476,50.291 24.476,50.291C25.315,50.597 26.491,50.306 27.103,49.656L27.534,49.193C28.703,48.087 30.271,47.413 32.004,47.413C33.737,47.413 35.313,48.095 36.474,49.201L36.905,49.664C37.509,50.314 38.693,50.605 39.532,50.299C39.532,50.299 40.285,50.024 42.01,49.036C43.735,48.04 44.339,47.523 44.339,47.523C45.021,46.95 45.358,45.782 45.099,44.927L44.911,44.3C44.543,42.747 44.739,41.054 45.601,39.564C46.464,38.066 47.844,37.039 49.381,36.584L49.993,36.443C50.855,36.247 51.702,35.368 51.859,34.49C51.859,34.49 52,33.706 52,31.714C51.992,29.715 51.851,28.93 51.851,28.93L51.851,28.931ZM32.004,39.681C27.605,39.681 24.029,36.113 24.029,31.706C24.029,27.307 27.597,23.739 32.004,23.739C36.403,23.739 39.979,27.307 39.979,31.714C39.971,36.113 36.403,39.681 32.004,39.681Z" />
android:width="25dp"
android:height="25dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:pathData="M933.9,511.7a140.8,140.8 0,0 1,90.1 -131.1,525.6 525.6,0 0,0 -57.3,-138.6 139.9,139.9 0,0 1,-184.9 -184.9A525.6,525.6 0,0 0,643.1 0a140.4,140.4 0,0 1,-262.1 0A525.6,525.6 0,0 0,242.3 57.3a139.9,139.9 0,0 1,-184.9 184.9A506.7,506.7 0,0 0,0 380.9a140.4,140.4 0,0 1,0 262.1,525.6 525.6,0 0,0 57.3,138.6 139.9,139.9 0,0 1,184.9 184.9,525.6 525.6,0 0,0 138.6,57.3 140.4,140.4 0,0 1,262.1 0,525.6 525.6,0 0,0 138.6,-57.3 139.9,139.9 0,0 1,184.9 -184.9,506.7 506.7,0 0,0 57.3,-138.6A140.8,140.8 0,0 1,933.9 511.7zM511.7,652.4A140.4,140.4 0,1 1,652.4 511.7,140.5 140.5,0 0,1 511.7,652.4z"
android:fillColor="#FF8A04"/>
</vector>

View File

@ -69,6 +69,17 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/clHomeRecharge" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/floating"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/delayDefault"
android:backgroundTint="@color/white"
android:layout_marginEnd="20dp"
android:layout_marginBottom="20dp"
android:src="@drawable/deepseek_orange"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<!-- android:layout_gravity="start"-->
@ -451,6 +462,7 @@
android:src="@drawable/oc_setting"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:padding="5dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
@ -470,6 +482,42 @@
app:layout_constraintTop_toTopOf="@+id/ivSetting" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/clDeepSeek"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/clSetting"
>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/ivDepSeek"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/deepseek_orange"
android:padding="5dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
/>
<TextView
android:id="@+id/tvDepSeek"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/deepSeekStr"
android:textColor="#5A2B31"
android:textSize="16sp"
android:textStyle="bold"
android:layout_marginStart="12dp"
app:layout_constraintBottom_toBottomOf="@+id/ivDepSeek"
app:layout_constraintStart_toEndOf="@+id/ivDepSeek"
app:layout_constraintTop_toTopOf="@+id/ivDepSeek" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>

View File

@ -388,5 +388,11 @@ Service Description\n
<string name="payTips2">problems with recharging, click here-></string>
<string name="YkStr">Free experience for tourists</string>
<string name="HYDq">Membership expiration date</string>
<string name="CurrentRoute">Current route</string>
<string name="AIRoute">AI intelligent route</string>
<string name="delayMS">Delay $ms</string>
<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>
</resources>

View File

@ -378,4 +378,11 @@
<string name="payTips2">充值有問題 點這裡-></string>
<string name="YkStr">遊客免費體驗</string>
<string name="HYDq">會員到期時間</string>
<string name="CurrentRoute">當前線路</string>
<string name="AIRoute">AI智能線路</string>
<string name="delayMS">延遲$ms</string>
<string name="delayDefault">延遲28ms</string>
<string name="RecommendedRoutes">推薦線路</string>
<string name="timeOut">線路超時</string>
<string name="deepSeekStr">DeepSeek智能智能助手</string>
</resources>

View File

@ -376,5 +376,11 @@
<string name="payTips2">充值有問題 點這裡-></string>
<string name="YkStr">遊客免費體驗</string>
<string name="HYDq">會員到期時間</string>
<string name="CurrentRoute">當前線路</string>
<string name="AIRoute">AI智能線路</string>
<string name="delayMS">延遲$ms</string>
<string name="delayDefault">延遲28ms</string>
<string name="RecommendedRoutes">推薦線路</string>
<string name="timeOut">線路超時</string>
<string name="deepSeekStr">DeepSeek智能智能助手</string>
</resources>

View File

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