From: liangzhenying <867174124@qq.com> Date: Mon, 24 Jun 2024 02:25:26 +0000 (+0800) Subject: 鉴权设置成只读 X-Git-Tag: deepseek~26 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=d35ad8e4aa025884a202ad9b87d36286b63c0708;p=mirrors%2FMixSdk-iOS.git 鉴权设置成只读 --- diff --git a/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate b/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate index 1c2e7e1..e2ea850 100644 Binary files a/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate and b/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/MixSdk/MixSdk/MixSdk/MSAuth.swift b/MixSdk/MixSdk/MixSdk/MSAuth.swift index e953881..f3b656f 100644 --- a/MixSdk/MixSdk/MixSdk/MSAuth.swift +++ b/MixSdk/MixSdk/MixSdk/MSAuth.swift @@ -17,7 +17,7 @@ public typealias MSLoginCallBack = (_ isSuccess: Bool,_ error:MSError?) -> Void /// 鉴权管理类 public class MSAuth { /// 是否已经鉴权 - public var authorized = true + public private(set) var authorized = false func getUrl(_ api:String)->String{ return "https://app.api.thisiot.com/da/auth/" + api diff --git a/MixSdk/MixSdk/MixSdk/MixSdk.swift b/MixSdk/MixSdk/MixSdk/MixSdk.swift index 6866fb6..e5d5af1 100644 --- a/MixSdk/MixSdk/MixSdk/MixSdk.swift +++ b/MixSdk/MixSdk/MixSdk/MixSdk.swift @@ -43,22 +43,22 @@ public class MixSdk:NSObject { /// 鉴权 - public var auth = MSAuth() + public let auth = MSAuth() /// 翻译 - public var translate = MSTranslate() + public let translate = MSTranslate() /// 人工智能AIGC - public var aigc = MSAigc() + public let aigc = MSAigc() /// 大模型对话 - public var chat = MSChat() + public let chat = MSChat() /// 文字转语音 - public var tts = MSTts() + public let tts = MSTts() /// 语音转文字 - public var stt = MSStt() + public let stt = MSStt()