mirror of
https://github.com/allinssl/allinssl.git
synced 2025-12-15 09:55:37 +08:00
修改初始化
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user