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)",
// 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{
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):
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"
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
@MainActor static func start(){
// NFX.sharedInstance().start()
- DCConfig.appLanguage = LanuageCache.get()
+ CCConfig.appLanguage = LanuageCache.get()
IASignWithWeChat.shared.register()
}
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)
}
//
-// 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"
+
+}
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 {
--- /dev/null
+//
+// 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"
+}
/// 日记管理
class Logger {
- static var isDebug: Bool = false
+ static var isDebug: Bool = true
fileprivate static let shared = Logger()
private var fileHandle:FileHandle?
}()
var isChinese:Bool{
- return (DCConfig.appLanguage == .chinse || DCConfig.appLanguage == .chinse)
+ return (CCConfig.appLanguage == .chinse || CCConfig.appLanguage == .chinse)
}
override func viewDidLoad() {
super.viewDidLoad()
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)")
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())
}
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)
}
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)
}
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
// Created by liangshi on 2026/1/26.
//
-//8FFDCB2185D5、8FFDCB2185D7、8FFDCB2185D8、8FFDCB2185D9
+//
import Foundation
import HandyJSON
class RSManager{
static let shared = RSManager()
- let deviceId = "8FFDCB2185D5"
+// 8FFDCB2185D5、testflihgt
+// 8FFDCB2185D7、目前
+// 8FFDCB2185D8、8FFDCB2185D9 还未使用
+ let deviceId = "8FFDCB2185D7"
var chat:MSVoiceChat = MSVoiceChat()
func start(){
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{