diff --git a/core/im.go b/core/im.go index fd15fd4..b108e43 100644 --- a/core/im.go +++ b/core/im.go @@ -30,6 +30,7 @@ type Sender interface { type Edit int type Replace int type Notify int +type Article []string var E Edit var R Replace diff --git a/core/test.go b/core/test.go index 2f699b4..0231ff9 100644 --- a/core/test.go +++ b/core/test.go @@ -20,7 +20,6 @@ func init() { if tp == "fake" && sillyGirl.GetBool("update_notify", false) == true { // time.Sleep(time.Second * 10) NotifyMasters("自动更新完成。") - return } msg := "重启完成。" diff --git a/im/wxmp/init.go b/im/wxmp/init.go index 38a1ad6..6a069d8 100644 --- a/im/wxmp/init.go +++ b/im/wxmp/init.go @@ -65,7 +65,7 @@ func init() { } } mediaID := "" - if url != "" { + if url != "" && len(ss) == 0 { filename := file_dir + fmt.Sprint(time.Now().UnixNano()) + ".jpg" err := func() error { f, err := os.Create(filename)