From ee26cf4209b643255d52688e9d876a4db304acd9 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期一, 25 十一月 2024 09:52:20 +0800
Subject: [PATCH] fix

---
 XQMuse/Root/Network/NetworkRequest.swift    |    1 +
 XQMuse/Root/Home/VC/BackgroundVoiceVC.swift |   13 +++++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/XQMuse/Root/Home/VC/BackgroundVoiceVC.swift b/XQMuse/Root/Home/VC/BackgroundVoiceVC.swift
index 1fb06c8..769e001 100644
--- a/XQMuse/Root/Home/VC/BackgroundVoiceVC.swift
+++ b/XQMuse/Root/Home/VC/BackgroundVoiceVC.swift
@@ -144,6 +144,19 @@
             }else{
                 DispatchQueue.main.asyncAfter(delay: 0.6) {
                     self.navigationController?.popViewController()
+
+                   let miniProgram =  WXLaunchMiniProgramReq.object()
+#if DEBUG
+                    miniProgram.miniProgramType = .preview
+#else
+                    miniProgram.miniProgramType = .release
+#endif
+                    miniProgram.path = ""
+                    WXApi.send(miniProgram){ s in
+                        if !s{
+                            alert(msg: "打开失败")
+                        }
+                    }
                 }
             }
 								}
diff --git a/XQMuse/Root/Network/NetworkRequest.swift b/XQMuse/Root/Network/NetworkRequest.swift
index fa65d20..f26133a 100644
--- a/XQMuse/Root/Network/NetworkRequest.swift
+++ b/XQMuse/Root/Network/NetworkRequest.swift
@@ -240,6 +240,7 @@
 																								switch next.code{
 																												case 200:ob.onNext(next)
                             case 401:ob.onError(NetRequestError.InvaildSession)
+                            case 501:ob.onError(NetRequestError.InvaildSession)
 																												default:
 																																if !ignoreAlert{
 																																				alertError(msg: "\(next.msg)")

--
Gitblit v1.7.1