增加功能:新用户注册增加前台消息通知

This commit is contained in:
Argo-Lenovo 2017-04-06 18:14:03 +08:00
parent 14b3f1cb23
commit 42c1c0db29
2 changed files with 5 additions and 0 deletions

View File

@ -192,6 +192,10 @@ $(function () {
toastr.error(data[1], "应用程序出现错误");
$.reloadWidget();
break;
case "Users":
toastr.info(data[1], "新用户注册");
$.reloadWidget();
break;
}
};
ws.onclose = function () {

View File

@ -145,6 +145,7 @@ namespace Bootstrap.DataAccess
}
CacheCleanUtility.ClearCache(userIds: p.Id == 0 ? string.Empty : p.Id.ToString());
ret = true;
if (p.UserStatus == 1) NotificationHelper.PushMessage(new MessageBody() { Category = "Users", Message = string.Format("{0}-{1}", p.UserName, p.Description) });
}
catch (DbException ex)
{