mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-30 17:00:26 +08:00
优化代码
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"encoding/json"
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/iwind/TeaGo/Tea"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
)
|
||||
|
||||
type HideTipAction struct {
|
||||
@@ -23,7 +23,7 @@ func (this *HideTipAction) RunPost(params struct {
|
||||
// 保存到文件
|
||||
tipJSON, err := json.Marshal(tipKeyMap)
|
||||
if err == nil {
|
||||
_ = ioutil.WriteFile(Tea.ConfigFile(tipConfigFile), tipJSON, 0666)
|
||||
_ = os.WriteFile(Tea.ConfigFile(tipConfigFile), tipJSON, 0666)
|
||||
}
|
||||
|
||||
this.Success()
|
||||
|
||||
Reference in New Issue
Block a user