added ios module
This commit is contained in:
20
ios/OralTrainer/Config.swift
Normal file
20
ios/OralTrainer/Config.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
import Foundation
|
||||
|
||||
enum AppConfig {
|
||||
/// 服务端地址:改成你实际部署的域名或 IP。
|
||||
/// 内网/开发环境可填 http://<服务器IP>:<端口>(例如 http://192.168.1.100:80)。
|
||||
static let serverBaseURL = "https://videoservice.d1kt.cn"
|
||||
|
||||
/// 朗读评测密钥:填服务器 sentence_api/.env 里的 CLIENT_API_KEY。
|
||||
static let assessmentAPIKey = "fcf60fa10bc1c49e5ddb93d570bc54df5648e187b64096962498d57661c14220"
|
||||
|
||||
/// 与安卓端一致:HTTPS 请求因 TLS 问题失败时自动降级重试 HTTP(仅限内网/私有部署)。
|
||||
static let allowHTTPFallback = true
|
||||
|
||||
static let userAgent = "OralTrainerKit/0.1.0 (iOS)"
|
||||
static let connectTimeout: TimeInterval = 15
|
||||
static let readTimeout: TimeInterval = 30
|
||||
static let assessmentTimeout: TimeInterval = 180
|
||||
|
||||
static let sha256Pattern = #"^[0-9a-fA-F]{64}$"#
|
||||
}
|
||||
Reference in New Issue
Block a user