update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -20,7 +20,6 @@ func init() {
|
||||
if tp == "fake" && sillyGirl.GetBool("update_notify", false) == true { //
|
||||
time.Sleep(time.Second * 10)
|
||||
NotifyMasters("自动更新完成。")
|
||||
|
||||
return
|
||||
}
|
||||
msg := "重启完成。"
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user