增加功能:新用户注册增加前台消息通知
This commit is contained in:
parent
14b3f1cb23
commit
42c1c0db29
|
@ -192,6 +192,10 @@ $(function () {
|
||||||
toastr.error(data[1], "应用程序出现错误");
|
toastr.error(data[1], "应用程序出现错误");
|
||||||
$.reloadWidget();
|
$.reloadWidget();
|
||||||
break;
|
break;
|
||||||
|
case "Users":
|
||||||
|
toastr.info(data[1], "新用户注册");
|
||||||
|
$.reloadWidget();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ws.onclose = function () {
|
ws.onclose = function () {
|
||||||
|
|
|
@ -145,6 +145,7 @@ namespace Bootstrap.DataAccess
|
||||||
}
|
}
|
||||||
CacheCleanUtility.ClearCache(userIds: p.Id == 0 ? string.Empty : p.Id.ToString());
|
CacheCleanUtility.ClearCache(userIds: p.Id == 0 ? string.Empty : p.Id.ToString());
|
||||||
ret = true;
|
ret = true;
|
||||||
|
if (p.UserStatus == 1) NotificationHelper.PushMessage(new MessageBody() { Category = "Users", Message = string.Format("{0}-{1}", p.UserName, p.Description) });
|
||||||
}
|
}
|
||||||
catch (DbException ex)
|
catch (DbException ex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue