46 lines
1.3 KiB
Swift
46 lines
1.3 KiB
Swift
|
|
//
|
|||
|
|
// AppConst.swift
|
|||
|
|
// Crush
|
|||
|
|
//
|
|||
|
|
// Created by Leon on 2025/7/13.
|
|||
|
|
//
|
|||
|
|
|
|||
|
|
import Foundation
|
|||
|
|
struct AppConst {
|
|||
|
|
/// 文档目录
|
|||
|
|
static let documentPath = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).last!
|
|||
|
|
|
|||
|
|
/// 缓存目录
|
|||
|
|
static let cachePath = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).last!
|
|||
|
|
|
|||
|
|
/// 临时目录
|
|||
|
|
static let tempPath = NSTemporaryDirectory() as NSString
|
|||
|
|
|
|||
|
|
static let schemePrefix = "crushlevel://"
|
|||
|
|
|
|||
|
|
static let urlForTos = ""
|
|||
|
|
static let urlForPrivacy = ""
|
|||
|
|
|
|||
|
|
static let discordOAuthAppId = "1396735872459866233"
|
|||
|
|
static let discordCallbackUrl = "https://test.crushlevel.ai"//"http://localhost:3000"
|
|||
|
|
|
|||
|
|
/// ⚠️gg.epal.lab,需要修改成正式的账号bundleid
|
|||
|
|
static let bundleId = "gg.epal.lab"
|
|||
|
|
|
|||
|
|
static var h5urlRoot: String {
|
|||
|
|
switch APIConfig.environment{
|
|||
|
|
case .test,.dev:
|
|||
|
|
return "https://test.crushlevel.ai"
|
|||
|
|
case .product,.appStore:
|
|||
|
|
#warning("to do")
|
|||
|
|
return "https://test.crushlevel.ai"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
// MARK: - AI
|
|||
|
|
static let gAIPhotoWidth:CGFloat = 1440.0
|
|||
|
|
static let gAIPhotoHeight:CGFloat = 2560.0
|
|||
|
|
|
|||
|
|
}
|