diff --git a/plugin_setutime/setu_geter.go b/plugin_setutime/setu_geter.go index 3baa539b..564e3d70 100644 --- a/plugin_setutime/setu_geter.go +++ b/plugin_setutime/setu_geter.go @@ -18,13 +18,13 @@ import ( "github.com/wdvxdr1123/ZeroBot/message" "github.com/FloatTech/ZeroBot-Plugin/control" - . "github.com/FloatTech/ZeroBot-Plugin/data" + "github.com/FloatTech/ZeroBot-Plugin/data" ) // Pools 图片缓冲池 type imgpool struct { Lock sync.Mutex - DB *Sqlite + DB *data.Sqlite Path string Group int64 List []string @@ -40,7 +40,7 @@ const ( // NewPoolsCache 返回一个缓冲池对象 func newPools() *imgpool { cache := &imgpool{ - DB: &Sqlite{DBPath: "data/SetuTime/SetuTime.db"}, + DB: &data.Sqlite{DBPath: "data/SetuTime/SetuTime.db"}, Path: "data/SetuTime/cache/", Group: 0, List: []string{"涩图", "二次元", "风景", "车万"}, // 可以自己加类别,得自己加图片进数据库