mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-22 08:10:09 +08:00
🐛 fix: fortune dlmu
This commit is contained in:
parent
ce1e85e0a3
commit
d3fafa7b9a
@ -90,6 +90,7 @@ func init() {
|
|||||||
err := file.DownloadTo(site+"运势签文.json", mikuji, false)
|
err := file.DownloadTo(site+"运势签文.json", mikuji, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.SendChain(message.Text("ERROR: ", err))
|
ctx.SendChain(message.Text("ERROR: ", err))
|
||||||
|
dlmu.Unlock()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ctx.SendChain(message.Text("下载签文文件完毕"))
|
ctx.SendChain(message.Text("下载签文文件完毕"))
|
||||||
@ -105,6 +106,7 @@ func init() {
|
|||||||
err := file.DownloadTo(site+"sakura.ttf", ttf, false)
|
err := file.DownloadTo(site+"sakura.ttf", ttf, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.SendChain(message.Text("ERROR: ", err))
|
ctx.SendChain(message.Text("ERROR: ", err))
|
||||||
|
dlmu.Unlock()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ctx.SendChain(message.Text("下载字体文件完毕"))
|
ctx.SendChain(message.Text("下载字体文件完毕"))
|
||||||
@ -137,12 +139,14 @@ func init() {
|
|||||||
err := file.DownloadTo(site+zipfile, zipcache, false)
|
err := file.DownloadTo(site+zipfile, zipcache, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.SendChain(message.Text("ERROR: ", err))
|
ctx.SendChain(message.Text("ERROR: ", err))
|
||||||
|
dlmu.Unlock()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ctx.SendChain(message.Text("下载背景图片完毕"))
|
ctx.SendChain(message.Text("下载背景图片完毕"))
|
||||||
err = unpack(zipcache, folder+"/")
|
err = unpack(zipcache, folder+"/")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.SendChain(message.Text("ERROR: ", err))
|
ctx.SendChain(message.Text("ERROR: ", err))
|
||||||
|
dlmu.Unlock()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ctx.SendChain(message.Text("解压背景图片完毕"))
|
ctx.SendChain(message.Text("解压背景图片完毕"))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user