mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
🎨 改进代码样式
This commit is contained in:
parent
5c620d6268
commit
feeeb63e52
@ -2,10 +2,6 @@ package ymgal
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/antchfx/htmlquery"
|
|
||||||
_ "github.com/fumiama/sqlite3" // import sql
|
|
||||||
"github.com/jinzhu/gorm"
|
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
@ -13,6 +9,11 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/antchfx/htmlquery"
|
||||||
|
_ "github.com/fumiama/sqlite3" // import sql
|
||||||
|
"github.com/jinzhu/gorm"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
// gdb 得分数据库
|
// gdb 得分数据库
|
||||||
@ -165,7 +166,6 @@ func getPicID(pageNumber int, pictureType string) {
|
|||||||
emoticonIDList = append(emoticonIDList, picID)
|
emoticonIDList = append(emoticonIDList, picID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func updatePic() {
|
func updatePic() {
|
||||||
@ -239,7 +239,6 @@ func storeCgPic(picIDStr string) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorln("[ymgal]:", err)
|
log.Errorln("[ymgal]:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func storeEmoticonPic(picIDStr string) {
|
func storeEmoticonPic(picIDStr string) {
|
||||||
|
|||||||
@ -2,14 +2,15 @@
|
|||||||
package ymgal
|
package ymgal
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"log"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/FloatTech/zbputils/control"
|
"github.com/FloatTech/zbputils/control"
|
||||||
"github.com/FloatTech/zbputils/control/order"
|
"github.com/FloatTech/zbputils/control/order"
|
||||||
"github.com/FloatTech/zbputils/ctxext"
|
"github.com/FloatTech/zbputils/ctxext"
|
||||||
"github.com/FloatTech/zbputils/file"
|
"github.com/FloatTech/zbputils/file"
|
||||||
zero "github.com/wdvxdr1123/ZeroBot"
|
zero "github.com/wdvxdr1123/ZeroBot"
|
||||||
"github.com/wdvxdr1123/ZeroBot/message"
|
"github.com/wdvxdr1123/ZeroBot/message"
|
||||||
"log"
|
|
||||||
"strings"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user