mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-27 04:11:20 +08:00
✏️ 调整 log 格式
This commit is contained in:
parent
e8fa6b8b07
commit
96aefc3938
@ -47,7 +47,7 @@ func init() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
log.Printf("[Reborn] 读取%d个国家/地区", len(area))
|
||||
log.Printf("[Reborn]读取%d个国家/地区", len(area))
|
||||
}()
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ func load(area *rate) error {
|
||||
if err == nil {
|
||||
defer resp.Body.Close()
|
||||
if resp.ContentLength > 0 {
|
||||
log.Printf("[Reborn] 从镜像下载国家和地区%d字节...", resp.ContentLength)
|
||||
log.Printf("[Reborn]从镜像下载国家和地区%d字节...", resp.ContentLength)
|
||||
data, err := io.ReadAll(resp.Body)
|
||||
if err == nil && len(data) > 0 {
|
||||
_, _ = f.Write(data)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user