鉴权设置成只读
authorliangzhenying <867174124@qq.com>
Mon, 24 Jun 2024 02:25:26 +0000 (10:25 +0800)
committerliangzhenying <867174124@qq.com>
Mon, 24 Jun 2024 02:25:26 +0000 (10:25 +0800)
MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate
MixSdk/MixSdk/MixSdk/MSAuth.swift
MixSdk/MixSdk/MixSdk/MixSdk.swift

index 1c2e7e1..e2ea850 100644 (file)
Binary files a/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate and b/MixSdk/MixSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate differ
index e953881..f3b656f 100644 (file)
@@ -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
index 6866fb6..e5d5af1 100644 (file)
@@ -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()