Skip to content

Commit e966539

Browse files
committed
适配新的日志写法
1 parent 0b5337a commit e966539

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CommonLibrary/AccountSupport/ServerAccount.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void UpdatePassword(string name, string password)
4747
if (name == all_list_accounts[i].UserName)
4848
{
4949
all_list_accounts[i].Password = password;
50-
LogHelper?.LogSave(Resource.StringResouce.AccountModifyPassword + name);
50+
LogHelper?.SaveInformation(Resource.StringResouce.AccountModifyPassword + name);
5151
break;
5252
}
5353
}
@@ -145,7 +145,7 @@ public bool AddNewAccount(T account)
145145
}
146146
}
147147
all_list_accounts.Add(account);
148-
LogHelper?.LogSave(Resource.StringResouce.AccountAddSuccess + account.UserName);
148+
LogHelper?.SaveInformation(Resource.StringResouce.AccountAddSuccess + account.UserName);
149149
}
150150
return true;
151151
}
@@ -163,7 +163,7 @@ public void DeleteAccount(string name)
163163
if (name == all_list_accounts[i].UserName)
164164
{
165165
all_list_accounts.RemoveAt(i);
166-
LogHelper?.LogSave(Resource.StringResouce.AccountDeleteSuccess + name);
166+
LogHelper?.SaveInformation(Resource.StringResouce.AccountDeleteSuccess + name);
167167
break;
168168
}
169169
}
@@ -211,7 +211,7 @@ public void LoadAllAccountsJson(string json)
211211
}
212212
catch(Exception ex)
213213
{
214-
LogHelper?.LogSave(Resource.StringResouce.AccountLoadFailed, ex);
214+
LogHelper?.SaveError(Resource.StringResouce.AccountLoadFailed, ex);
215215
}
216216
}
217217
}

0 commit comments

Comments
 (0)