This commit is contained in:
cdle 2021-08-19 09:41:20 +08:00
parent 9513957d7c
commit a480c23143
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
package models
func (ck *JdCookie) Push(msg string) {
func (ck JdCookie) Push(msg string) {
if ck.PtPin != "" {
go SendQQ(int64(ck.QQ), msg)
go pushPlus(ck.PushPlus, msg)

View File

@ -26,7 +26,7 @@ func initVersion() {
// name := AppName + "_" + runtime.GOOS + "_" + runtime.GOARCH
if match := regexp.MustCompile(`var version = "(\d{10})"`).FindStringSubmatch(value); len(match) != 0 {
if match[1] > version {
logs.Warn("版本过低,自动更新")
(&JdCookie{}).Push("版本过低,自动更新")
err := Update()
if err != nil {
logs.Warn("更新失败,", err)