feat:允许设定首次登录失败后是否进入守护

This commit is contained in:
Mmx
2021-07-31 18:29:50 +08:00
parent a6be2fa234
commit b148eea874
6 changed files with 37 additions and 40 deletions

View File

@@ -56,7 +56,6 @@ func (a *file) WriteJson(path string, receiver interface{}) error {
func (*file) GetRootPath() (string, error) {
t, err := os.Executable()
if err != nil {
ErrHandler(err)
return "", err
}
return filepath.Dir(t) + "/", nil