x
This commit is contained in:
parent
47b17b8ce0
commit
25841b181f
@ -278,7 +278,7 @@ var handleMessage = func(msgs ...interface{}) interface{} {
|
||||
if pins == "" {
|
||||
return "找不到匹配的账号"
|
||||
}
|
||||
fmt.Println(pins)
|
||||
|
||||
for _, task := range Config.Tasks {
|
||||
if task.Word == "查询" {
|
||||
task.Envs = []Env{{
|
||||
|
||||
@ -88,7 +88,7 @@ func runTask(task *Task, msgs ...interface{}) string {
|
||||
io.Copy(f, r.Body)
|
||||
f.Close()
|
||||
} else {
|
||||
if path != task.Path {
|
||||
if path != task.Path && task.Name != task.Path {
|
||||
f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
|
||||
if err != nil {
|
||||
logs.Warn("打开%s失败,", path, err)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user