master
howell 4 years ago
parent 16bf95b037
commit bcb099809c

@ -6,7 +6,6 @@ import (
"net/http" "net/http"
"os" "os"
"path/filepath" "path/filepath"
"recook/asset"
"recook/configs" "recook/configs"
"recook/internal/api/manage" "recook/internal/api/manage"
morder "recook/internal/api/manage/order" morder "recook/internal/api/manage/order"
@ -31,14 +30,14 @@ var (
) )
func main() { func main() {
dirs := []string{"credentials"} // 设置需要释放的目录 //dirs := []string{"credentials"} // 设置需要释放的目录
for _, dir := range dirs { //for _, dir := range dirs {
// 解压dir目录到当前目录 // // 解压dir目录到当前目录
if err := asset.RestoreAssets("./", dir); err != nil { // if err := asset.RestoreAssets("./", dir); err != nil {
log.Println(err) // log.Println(err)
break // break
} // }
} //}
decimal.MarshalJSONWithoutQuotes = true decimal.MarshalJSONWithoutQuotes = true
dbc.SetupMysql() dbc.SetupMysql()

Loading…
Cancel
Save