From 910e88b92778ae78f0444f5c6f6202668c3110f6 Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期一, 24 六月 2024 14:33:59 +0800 Subject: [PATCH] fix --- DolphinEnglishLearnStudent/Services/NetworkRequest.swift | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DolphinEnglishLearnStudent/Services/NetworkRequest.swift b/DolphinEnglishLearnStudent/Services/NetworkRequest.swift index 28a8647..04d4545 100644 --- a/DolphinEnglishLearnStudent/Services/NetworkRequest.swift +++ b/DolphinEnglishLearnStudent/Services/NetworkRequest.swift @@ -230,9 +230,9 @@ if let next = BaseResponse<T>.deserialize(from: jsonString){ switch next.code{ case 200:ob.onNext(next) - case 504: //登录设备最大限制 - break - case 503: //登录被冻结 + case 506: + ob.onError(NetRequestError.Other(next.code,next.msg)) + case 503,502: //登录被冻结 CommonAlertView.show(isSinple: true, content: next.msg) // case 501: // CommonAlertView.show(title: "提示", content: next.msg,isSingle: true) { _ in -- Gitblit v1.7.1