2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 18:27:13 +08:00

refactor: 重构 tools.Write 函数

This commit is contained in:
耗子
2023-11-12 03:02:45 +08:00
parent 46e027b18c
commit ac420debbb
23 changed files with 591 additions and 1957 deletions

View File

@@ -145,7 +145,9 @@ func (r *Php80Controller) SaveConfig(ctx http.Context) http.Response {
}
config := ctx.Request().Input("config")
tools.Write("/www/server/php/"+r.version+"/etc/php.ini", config, 0644)
if err := tools.Write("/www/server/php/"+r.version+"/etc/php.ini", config, 0644); err != nil {
return nil
}
return r.Reload(ctx)
}