mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-18 17:48:01 +08:00
fix bugs
This commit is contained in:
@@ -26,7 +26,7 @@ namespace OpenAuth.App
|
||||
|
||||
public void Update(ApplyTransitionHistory historyItem)
|
||||
{
|
||||
_repository.Update(historyItem);
|
||||
_repository.Update(u =>u.Id, historyItem);
|
||||
}
|
||||
|
||||
public void DeleteByProcess(Guid processId)
|
||||
|
@@ -22,8 +22,8 @@ namespace OpenAuth.App
|
||||
{
|
||||
if (model.Id == Guid.Empty)
|
||||
{
|
||||
var obj = model.CopyTo<CommonApply>();
|
||||
_repository.Add(obj);
|
||||
model.ApplyTime = DateTime.Now;
|
||||
_repository.Add(model);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -31,6 +31,7 @@ namespace OpenAuth.App
|
||||
{
|
||||
UserId = model.UserId,
|
||||
Name = model.Name,
|
||||
Comment = model.Comment
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user