x
This commit is contained in:
parent
9513957d7c
commit
a480c23143
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user