x
This commit is contained in:
parent
7272263cff
commit
cfbb81ccc6
@ -88,7 +88,7 @@ func runTask(task *Task, msgs ...interface{}) string {
|
||||
io.Copy(f, r.Body)
|
||||
f.Close()
|
||||
} else {
|
||||
if task.Name != task.Path {
|
||||
if path != 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