.github
.vscode
android
assets
buildtools
ios
Flutter
Runner
Assets.xcassets
Base.lproj
Services
CloudFile.swift
DataExchange.swift
AppDelegate.swift
GoogleService-Info.plist
Info.plist
NotifyDelegate.swift
Runner-Bridging-Header.h
Runner.entitlements
Runner.xcodeproj
Runner.xcworkspace
RunnerTests
SolianNotificationService
.gitignore
Podfile
Podfile.lock
lib
linux
macos
web
windows
.gitignore
.metadata
README.md
analysis_options.yaml
build.yaml
devtools_options.yaml
firebase.json
pubspec.lock
pubspec.yaml
15 lines
311 B
Swift
15 lines
311 B
Swift
//
|
|
// CloudFile.swift
|
|
// Runner
|
|
//
|
|
// Created by LittleSheep on 2025/5/31.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
func getAttachmentUrl(for identifier: String) -> String {
|
|
let serverBaseUrl = "https://nt.solian.app"
|
|
|
|
return identifier.starts(with: "http") ? identifier : "\(serverBaseUrl)/files/\(identifier)"
|
|
}
|