Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 9d4435a0bf7c207b4fc5e03e92459a226436f164
This commit is contained in:
commit
a25eba9f96
|
@ -533,9 +533,9 @@ func SendRequest(method, url string, file multipart.File, fileName string) (stri
|
|||
res, err := signedR.Do(request)
|
||||
if err != nil {
|
||||
fmt.Println("Error sending request:", err)
|
||||
//return nil, err
|
||||
return "", err
|
||||
}
|
||||
defer res.Body.Close()
|
||||
//defer res.Body.Close()
|
||||
Resbody, err := io.ReadAll(res.Body)
|
||||
if err != nil {
|
||||
fmt.Println("Error reading response body:", err)
|
||||
|
|
|
@ -89,7 +89,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
|||
NamingStrategy: schema.NamingStrategy{
|
||||
SingularTable: true, // 使用单数表名,启用该选项,此时,`User` 的表名应该是 `t_user`
|
||||
},
|
||||
Logger: logger.Default.LogMode(logger.Info),
|
||||
Logger: logger.Default.LogMode(logger.Warn),
|
||||
})
|
||||
if err != nil {
|
||||
logx.Errorf("数据库连接失败, err%v", err)
|
||||
|
|
Loading…
Reference in New Issue