北科AI接入完成,上到testflight
authorliangzhenying <867174124@qq.com>
Wed, 28 Jan 2026 04:04:40 +0000 (12:04 +0800)
committerliangzhenying <867174124@qq.com>
Wed, 28 Jan 2026 04:04:40 +0000 (12:04 +0800)
16 files changed:
ShenYin/ShenYin.xcodeproj/project.pbxproj
ShenYin/ShenYin/Api/HttpClient.swift
ShenYin/ShenYin/Launch/AppLaunch.swift
ShenYin/ShenYin/Sdk/DcSdk/tool/CCBleManager.swift
ShenYin/ShenYin/Sdk/DcSdk/tool/CCConfig.swift [moved from ShenYin/ShenYin/Sdk/CCConfig.swift with 61% similarity]
ShenYin/ShenYin/Sdk/DcSdk/tool/DcSdkManager.swift
ShenYin/ShenYin/Sdk/JoySdk/tool/CCConfig.swift [new file with mode: 0644]
ShenYin/ShenYin/Sdk/LogManager.swift
ShenYin/ShenYin/UI/Home/HistoryRecord/VC/CalendarPickerVC.swift
ShenYin/ShenYin/UI/Login/ViewModel/IASignWithWeChat.swift
ShenYin/ShenYin/UI/Mine/LanguageVC.swift
ShenYin/ShenYin/UI/Mine/ProtocolVC.swift
ShenYin/ShenYin/UI/Mine/Update/AppUpdateVM.swift
ShenYin/ShenYin/UI/Raisound/RSApi.swift
ShenYin/ShenYin/UI/Raisound/RSManager.swift
ShenYin/ShenYin/lan/LanConfig.swift

index a691cf7..3c2cf08 100644 (file)
@@ -95,6 +95,7 @@
                                Sdk/CCDevice.swift,
                                Sdk/CCPage.swift,
                                Sdk/DcSdk/tool/CCBleManager.swift,
+                               Sdk/DcSdk/tool/CCConfig.swift,
                                Sdk/DcSdk/tool/CCDevice.swift,
                                Sdk/DcSdk/tool/CCPage.swift,
                                Sdk/DcSdk/tool/DcCall.swift,
                                Sdk/CCDevice.swift,
                                Sdk/CCPage.swift,
                                Sdk/JoySdk/tool/CCBleManager.swift,
+                               Sdk/JoySdk/tool/CCConfig.swift,
                                Sdk/JoySdk/tool/CCDevice.swift,
                                Sdk/JoySdk/tool/CCPage.swift,
                                Sdk/JoySdk/tool/JoyCallRecord.swift,
                                CODE_SIGN_ENTITLEMENTS = ShenYin/ShenYin.entitlements;
                                CODE_SIGN_IDENTITY = "Apple Development";
                                CODE_SIGN_STYLE = Automatic;
-                               CURRENT_PROJECT_VERSION = 1004;
+                               CURRENT_PROJECT_VERSION = 100040;
                                DEVELOPMENT_TEAM = G23X75CJ67;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
                                CODE_SIGN_ENTITLEMENTS = ShenYin/ShenYin.entitlements;
                                CODE_SIGN_IDENTITY = "Apple Development";
                                CODE_SIGN_STYLE = Automatic;
-                               CURRENT_PROJECT_VERSION = 1004;
+                               CURRENT_PROJECT_VERSION = 100040;
                                DEVELOPMENT_TEAM = G23X75CJ67;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
index b433f16..1187a97 100644 (file)
@@ -135,7 +135,7 @@ extension CommomApi{
         //        http://118.145.178.188:32000/uc/country/list
 //        return "https://app-api.deepchords.com"
 //        return "http://118.145.178.188:32000"
-        return DCConfig.baseURL
+        return CCConfig.baseURL
     }
     
     var url:String{
@@ -194,9 +194,9 @@ extension CommomApi{
         case .storageSize:
             return "/res/voice-file/storage-size"
         case .musicCategory:
-            return "/res/music-category/list?languageCode=\(DCConfig.appLanguage.lanCode)"
+            return "/res/music-category/list?languageCode=\(CCConfig.appLanguage.lanCode)"
         case .musicCategoryList(let categoryId,let page):
-            return "/res/sleep-music/list/\(page)?categoryId=\(categoryId)&languageCode=\(DCConfig.appLanguage.lanCode)"
+            return "/res/sleep-music/list/\(page)?categoryId=\(categoryId)&languageCode=\(CCConfig.appLanguage.lanCode)"
         case .musicUrl( let id):
             return "/res/music-file/path/\(id)"
         case .recordUrl( let id):
@@ -207,13 +207,13 @@ extension CommomApi{
         case .uploadVoiceFile(_):
             return "/res/voice-file/upload"
         case .getProductList:
-            return "/dev/product/list?name=&languageCode=\(DCConfig.appLanguage.lanCode)"
+            return "/dev/product/list?name=&languageCode=\(CCConfig.appLanguage.lanCode)"
         case .productBook(let productId):
-            return "/res/prod-book-file?productId=\(productId)&languageCode=\(DCConfig.appLanguage.lanCode)"
+            return "/res/prod-book-file?productId=\(productId)&languageCode=\(CCConfig.appLanguage.lanCode)"
         case .qaCategory:
-            return "/uc/qa-category/list?&languageCode=\(DCConfig.appLanguage.lanCode)"
+            return "/uc/qa-category/list?&languageCode=\(CCConfig.appLanguage.lanCode)"
         case .qaList(let categoryId,let page):
-            return "/uc/qa/list/\(page)?categoryId=\(categoryId)&languageCode=\(DCConfig.appLanguage.lanCode)"
+            return "/uc/qa/list/\(page)?categoryId=\(categoryId)&languageCode=\(CCConfig.appLanguage.lanCode)"
             
         case .commitFeedback(_):
             return "/uc/feedback"
@@ -336,7 +336,7 @@ extension CommomApi{
             break
         case let .productInfo(name):
             params["prodName"] = name
-            params["languageCode"] = DCConfig.appLanguage.lanCode
+            params["languageCode"] = CCConfig.appLanguage.lanCode
             break
         case let .bindDevice(para):
             params += para
index f535ed1..6f207af 100644 (file)
@@ -11,7 +11,7 @@ class AppLaunch:NSObject{
     @MainActor static func start(){
 //        NFX.sharedInstance().start()
         
-        DCConfig.appLanguage = LanuageCache.get()
+        CCConfig.appLanguage = LanuageCache.get()
 
         
         IASignWithWeChat.shared.register()
index 9b5bc75..b388c31 100644 (file)
@@ -71,7 +71,7 @@ extension CCBleManager:CBCentralManagerDelegate{
         }
         Logger.debug(peripheral)
         
-        if let mac = DcSdkManager.getMac(advertisementData),mac.count == 17 {
+        if let mac = DcSdkManager.getMac(advertisementData) {
             devices.append(DCPeripheral(device: peripheral,mac: mac))
             discoverDeviceCallback?(devices)
         }
similarity index 61%
rename from ShenYin/ShenYin/Sdk/CCConfig.swift
rename to ShenYin/ShenYin/Sdk/DcSdk/tool/CCConfig.swift
index 04bda40..fb06aa7 100644 (file)
@@ -1,49 +1,47 @@
 //
-//  Config.swift
+//  CCConfig.swift
 //  ShenYin
 //
-//  Created by liangshi on 2025/10/15.
+//  Created by liangshi on 2026/1/28.
 //
 
-class DCConfig{
-    static var appLanguage = AppSupportLanguage.english
-
-    static let wxAppID = "wxd9d677e0024caa90"
-    static let wxUniversalLink = "https://dc-cloud-pub.tos-cn-guangzhou.volces.com/app/"
-    /// 通用链接
-//    https://dc-cloud-pub.tos-cn-guangzhou.volces.com/apple-app-site-association
-    static let appStoreLink = "https://itunes.apple.com/cn/app/6752551504?mt=8"
-    /// 版本检测
-    static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6752551504"
-    
-    /// 服务器地址
-//    static let baseURL = "http://118.145.178.188:32000"
-    static let baseURL = "https://app-api.deepchords.com"
-    //海外版
-//    static let baseURL = "https://app-api.deepchords-ai.com"
-    
-    /// 用户隐私协议地址
-    static let yonghuBaseURL = "https://pub-tos.deepchords.com"
-}
-
-
-
-//
-//class DCConfig{
+//class CCConfig{
 //    static var appLanguage = AppSupportLanguage.english
 //    
 //    static let wxAppID = "wxd9d677e0024caa90"
 //    static let wxUniversalLink = "https://dc-cloud-pub.tos-cn-guangzhou.volces.com/app/"
-//    /// 通用链接
-//    //    https://dc-cloud-pub.tos-cn-guangzhou.volces.com/apple-app-site-association
 //    static let appStoreLink = "https://itunes.apple.com/cn/app/6752551504?mt=8"
 //    /// 版本检测
 //    static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6752551504"
 //    
 //    /// 服务器地址
-//    static let baseURL = "https://app-api.keqianggx.com"
+//    //    static let baseURL = "http://118.145.178.188:32000"
+//    static let baseURL = "https://app-api.deepchords.com"
+//    //海外版
+//    //    static let baseURL = "https://app-api.deepchords-ai.com"
 //    
 //    /// 用户隐私协议地址
 //    static let yonghuBaseURL = "https://pub-tos.deepchords.com"
-//    
 //}
+//
+//
+
+
+class CCConfig{
+    static var appLanguage = AppSupportLanguage.english
+
+    static let wxAppID = "wxd9d677e0024caa90"
+    static let wxUniversalLink = "https://www.playboykq.com/app/"
+    /// 通用链接
+    //    https://dc-cloud-pub.tos-cn-guangzhou.volces.com/apple-app-site-association
+    static let appStoreLink = "https://itunes.apple.com/cn/app/6752551504?mt=8"
+    /// 版本检测
+    static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6752551504"
+
+    /// 服务器地址
+    static let baseURL = "https://app-api.playboykq.com"
+
+    /// 用户隐私协议地址
+    static let yonghuBaseURL = "https://pub-tos.deepchords.com"
+
+}
index 29c38c4..a9b6ec1 100644 (file)
@@ -112,7 +112,10 @@ extension DcSdkManager{
                 let text = mac.map { String($0, radix: 16).padLeft(toLength: 2, withPad: "0") }.joined(separator: ":").uppercased()
                 Logger.debug(dict)
                 Logger.debug(advMsd)
-                Logger.debug(mac)
+                Logger.debug("mac地址",mac)
+                if mac.count > 20{
+                    return ""
+                }
                 Logger.debug(text)
                 return text
             } else {
diff --git a/ShenYin/ShenYin/Sdk/JoySdk/tool/CCConfig.swift b/ShenYin/ShenYin/Sdk/JoySdk/tool/CCConfig.swift
new file mode 100644 (file)
index 0000000..50c2c00
--- /dev/null
@@ -0,0 +1,25 @@
+//
+//  Config.swift
+//  ShenYin
+//
+//  Created by liangshi on 2025/10/15.
+//
+
+class CCConfig{
+    static var appLanguage = AppSupportLanguage.english
+
+    static let wxAppID = "wxd9d677e0024caa90"
+    static let wxUniversalLink = "https://dc-cloud-pub.tos-cn-guangzhou.volces.com/app/"
+    static let appStoreLink = "https://itunes.apple.com/cn/app/6752551504?mt=8"
+    /// 版本检测
+    static let appStoreVersionURL = "https://itunes.apple.com/cn/lookup?id=6752551504"
+    
+    /// 服务器地址
+//    static let baseURL = "http://118.145.178.188:32000"
+    static let baseURL = "https://app-api.deepchords.com"
+    //海外版
+//    static let baseURL = "https://app-api.deepchords-ai.com"
+    
+    /// 用户隐私协议地址
+    static let yonghuBaseURL = "https://pub-tos.deepchords.com"
+}
index f61e054..8735333 100644 (file)
@@ -9,7 +9,7 @@ import Foundation
 
 /// 日记管理
 class Logger {
-    static var isDebug: Bool = false
+    static var isDebug: Bool = true
     
     fileprivate static let shared = Logger()
     private var fileHandle:FileHandle?
index 5e94d11..1258a15 100644 (file)
@@ -40,7 +40,7 @@ class CalendarPickerVC: BaseVC {
     }()
     
     var isChinese:Bool{
-        return (DCConfig.appLanguage == .chinse || DCConfig.appLanguage == .chinse)
+        return (CCConfig.appLanguage == .chinse || CCConfig.appLanguage == .chinse)
     }
     override func viewDidLoad() {
         super.viewDidLoad()
index 8d65cfd..9065646 100644 (file)
@@ -18,7 +18,7 @@ class IASignWithWeChat:NSObject {
         WXApi.startLog(by: .detail) { log in
             Logger.debug(log)
         }
-        WXApi.registerApp(DCConfig.wxAppID, universalLink: DCConfig.wxUniversalLink)
+        WXApi.registerApp(CCConfig.wxAppID, universalLink: CCConfig.wxUniversalLink)
 //        WXApi.checkUniversalLinkReady { step, result in
 //            Logger.debug("step = ",step)
 //            Logger.debug("result success = \(result.success),errorInfo = \(result.errorInfo),suggestion = \(result.suggestion)")
index edb9d3b..5ef482d 100644 (file)
@@ -59,13 +59,13 @@ extension LanguageVC:UITableViewDelegate,UITableViewDataSource {
         else{
             cell.bgView.yc.setCorners(withRoundedRect: rect, roundingCorners: [.allCorners], cornerRadii: CGSize(width: 0, height: 0))
         }
-        cell.selectedIcon.isHidden = list[indexPath.row] != DCConfig.appLanguage
+        cell.selectedIcon.isHidden = list[indexPath.row] != CCConfig.appLanguage
         return cell
     }
     func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
         let lan = list[indexPath.row]
-        DCConfig.appLanguage = lan
-        LanuageCache.save(lan: DCConfig.appLanguage)
+        CCConfig.appLanguage = lan
+        LanuageCache.save(lan: CCConfig.appLanguage)
         App.shared.didLogin()
         App.shared.tabController?.selectedIndex = 4
         App.shared.goToPage(LanguageVC())
index fa494cb..2d31386 100644 (file)
@@ -64,9 +64,9 @@ final class FileDownloadVC: BaseVC {
     }
     
     override func setupData() {
-        let lan = DCConfig.appLanguage.yonghuCode
+        let lan = CCConfig.appLanguage.yonghuCode
 //        let fileUrl = "https://dc-cloud-pub.tos-cn-guangzhou.volces.com/protocol/\(lan)/\(type.rawValue).pdf"
-        let fileUrl =  DCConfig.yonghuBaseURL + "/protocol/\(lan)/\(type.rawValue).pdf"
+        let fileUrl =  CCConfig.yonghuBaseURL + "/protocol/\(lan)/\(type.rawValue).pdf"
         
         self.dowmload(url:fileUrl)
     }
index 0c65f99..7a82dee 100644 (file)
@@ -39,7 +39,7 @@ class AppUpdateVM:BaseVM{
         CustomAlert.showWith(title: nil, messgage: "检测到新版本,是否前往更新".l10n) {
             
         } okCallback: {
-            guard let url = DCConfig.appStoreLink.yc.asUrl else{
+            guard let url = CCConfig.appStoreLink.yc.asUrl else{
                 return
             }
             UIApplication.shared.open(url)
@@ -48,7 +48,7 @@ class AppUpdateVM:BaseVM{
     }
     func forceUpdate(){
         CustomAlert.showWith(title: nil, messgage: "检测到新版本".l10n, ok: "前往更新".l10n,cancelCallback: nil) {
-            guard let url = DCConfig.appStoreLink.yc.asUrl else{
+            guard let url = CCConfig.appStoreLink.yc.asUrl else{
                 return
             }
             UIApplication.shared.open(url, options: [:], completionHandler: {_ in
index dc3b69c..8e27e88 100644 (file)
@@ -5,7 +5,7 @@
 //  Created by liangshi on 2026/1/26.
 //
 
-//8FFDCB2185D5、8FFDCB2185D7、8FFDCB2185D8、8FFDCB2185D9
+//
 
 import Foundation
 import HandyJSON
index df1c74f..9c73899 100644 (file)
@@ -7,7 +7,10 @@
 
 class RSManager{
     static let shared = RSManager()
-    let deviceId = "8FFDCB2185D5"
+//    8FFDCB2185D5、testflihgt
+//    8FFDCB2185D7、目前
+//    8FFDCB2185D8、8FFDCB2185D9 还未使用
+    let deviceId = "8FFDCB2185D7"
     var chat:MSVoiceChat = MSVoiceChat()
     
     func start(){
index 64e052d..0b98a7a 100644 (file)
@@ -179,10 +179,10 @@ enum AppSupportLanguage{
 
 extension String{
     var l10n:String{
-        if DCConfig.appLanguage == .chinse{
+        if CCConfig.appLanguage == .chinse{
             return self
         }
-        if let value = DCConfig.appLanguage.map[self] {
+        if let value = CCConfig.appLanguage.map[self] {
             return value
         }
         else{