增加上传与接收文件

This commit is contained in:
2025-10-23 19:05:16 +08:00
parent 329384d8ef
commit 10c349b82f
12 changed files with 173 additions and 14 deletions

View File

@@ -1,10 +1,8 @@
package main
import (
"github.com/ayflying/p2p/internal/consts"
_ "github.com/ayflying/p2p/internal/logic"
_ "github.com/ayflying/p2p/internal/packed"
"github.com/ayflying/p2p/internal/service"
"github.com/gogf/gf/v2/os/gfile"
//步骤1加载驱动
@@ -19,9 +17,6 @@ var (
)
func main() {
// 启动系统托盘
service.OS().Load(consts.Name, consts.Name+"服务端", "manifest/images/favicon.ico")
if ok := gfile.Exists("runtime"); !ok {
gfile.Mkdir("runtime")
}