上传服务器支持分流s3上传

This commit is contained in:
ayflying
2025-01-24 12:12:58 +08:00
parent b219123ded
commit 5e885af295
4 changed files with 105 additions and 25 deletions

19
act/save.go Normal file
View File

@@ -0,0 +1,19 @@
package act
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gctx"
)
// 查询表格时候存在
func (s *act) TableExists(name string) bool {
Prefix := g.DB().GetPrefix()
get, err := g.DB().TableFields(gctx.New(), Prefix+name)
if err != nil {
g.Log().Error(gctx.New(), err)
}
if get != nil {
return true
}
return false
}