server: 平台抽象层+bilibili、服务端加密凭据库、角色中间件;web: 精简页面/路由、macOS 客户端(Swift)与多份方案文档;移除误入库的编译产物

This commit is contained in:
Qiufeng
2026-08-21 10:53:32 +08:00
parent 0daa9782c9
commit 3585c39bab
103 changed files with 5842 additions and 3197 deletions
+12 -1
View File
@@ -9,8 +9,9 @@ import (
"flag"
"log"
"os"
"path/filepath"
"os/signal"
"path/filepath"
"strings"
"sync"
"syscall"
@@ -102,6 +103,16 @@ func main() {
if id.DeviceID > 0 {
return errors.New("设备已配对")
}
name = strings.TrimSpace(name)
if name == "" {
name = cfg.Name
}
if name == "" {
name, _ = os.Hostname()
}
if name == "" {
name = "macOS Agent"
}
did, err := pairing.PairWithCode(cfg.Server, code, name, "core", "0.2.0", id.PublicKey)
if err != nil {
return err