增加 升级功能的 日志监控
This commit is contained in:
@@ -1086,6 +1086,11 @@ namespace WebSite.Controllers
|
||||
public ActionResult Save(string jsonData)
|
||||
{
|
||||
RoomType entity = Newtonsoft.Json.JsonConvert.DeserializeObject<RoomType>(jsonData);
|
||||
|
||||
if (Tools.ContainsSpecialChars(entity.Name) || Tools.ContainsSpecialChars(entity.HostName))
|
||||
{
|
||||
return Json(new { IsSuccess = false, Message = "房型名称不得包含特殊符号、空格,命名字数不得超过 N 个文字"});
|
||||
}
|
||||
RoomType existRoomType = RoomTypeManager.GetByCode(entity.Code, CurrentHotelID);
|
||||
if (existRoomType != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user