mirror of https://github.com/allinssl/allinssl
修改初始化
parent
d147bc7a82
commit
bd33e6f0be
|
@ -14,6 +14,7 @@ func init() {
|
|||
|
||||
dbPath := "data/data.db"
|
||||
_, _ = filepath.Abs(dbPath)
|
||||
os.WriteFile(dbPath, []byte{}, 0644)
|
||||
// fmt.Println("数据库路径:", absPath)
|
||||
db, err := sql.Open("sqlite3", dbPath)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue