From c1862d736587c9a5c10a368dabaeb72be2df4bcb Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期二, 18 六月 2024 16:26:23 +0800
Subject: [PATCH] fix

---
 DolphinEnglishLearnStudent/Services/NetworkRequest.swift |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/DolphinEnglishLearnStudent/Services/NetworkRequest.swift b/DolphinEnglishLearnStudent/Services/NetworkRequest.swift
index 03a8cf5..2a4a26f 100644
--- a/DolphinEnglishLearnStudent/Services/NetworkRequest.swift
+++ b/DolphinEnglishLearnStudent/Services/NetworkRequest.swift
@@ -231,15 +231,11 @@
 																								switch next.code{
 																												case 200:ob.onNext(next)
 																												case 504: //登录设备最大限制
-																																let attribute = AttributedStringbuilder.build().add(string:next.msg, withFont: .systemFont(ofSize: 14, weight: .medium), withColor: .black.withAlphaComponent(0.6)).mutableAttributedString
-//																																CommonAlertView.show(title: "提示", attribute: attribute, cancelStr: "关闭", completeStr: "关闭", isSingle: true, customBtnWidth: JQ_ScreenW - 170) { _ in
-//
-//																																}
+																																break
 																												case 503: //登录被冻结
-																																let attribute = AttributedStringbuilder.build().add(string:next.msg, withFont: .systemFont(ofSize: 14, weight: .medium), withColor: .black.withAlphaComponent(0.6)).mutableAttributedString
-//																																CommonAlertView.show(title: "提示", attribute: attribute, cancelStr: "关闭", completeStr: "关闭", isSingle: true, customBtnWidth: JQ_ScreenW - 170) { _ in
-//
-//																																}
+																																DispatchQueue.main.async {
+																																				alert(msg: next.msg)
+																																}
 //																												case 501:
 //																																CommonAlertView.show(title: "提示", content: next.msg,isSingle: true) { _ in
 //
@@ -252,7 +248,9 @@
 																																sceneDelegate?.needLogin()
 																												default:
 																																if !ignoreAlert{
-																																				alertError(msg: "\(next.msg)")
+																																				DispatchQueue.main.async {
+																																								alertError(msg: "\(next.msg)")
+																																				}
 																																}
 																																ob.onError(NetRequestError.Other(next.code,next.msg))
 																								}

--
Gitblit v1.7.1