/// <summary> /// 根据之前最后一个警报id来判断的,用这个了 /// </summary> /// <param name="req"></param> /// <returns></returns> public string CheckNewAlarm3(CheckAlarmReq req) { var user = JsonConvert.DeserializeObject <AllInOne_UserInfo>(Session["user"].ToString()); var r = AllFunc.Instance.CheckNewAlarm2(user, (int)req.oldLastId); return(JsonConvert.SerializeObject(r)); }
public string CheckNewAlarm2(CheckAlarmReq req) { //var user = JsonConvert.DeserializeObject<AllInOne_UserInfo>(Session["user"].ToString()); var user = AllInOne_UserInfoOper.Instance.GetById(1); //oldCount = oldCount ?? 0; var r = AllFunc.Instance.CheckNewAlarm(user, Convert.ToInt32(req.oldCount)); return(JsonConvert.SerializeObject(r)); }
public string CheckNewAlarm2(CheckAlarmReq req) { //LogHelper.WriteLog(typeof(AlarmAjaxController), "CheckNewAlarm2 In!"); var user = JsonConvert.DeserializeObject <AllInOne_UserInfo>(Session["user"].ToString()); //oldCount = oldCount ?? 0; var r = AllFunc.Instance.CheckNewAlarm(user, Convert.ToInt32(req.oldCount)); //LogHelper.WriteLog(typeof(AlarmAjaxController), "CheckNewAlarm2 Out!"); return(JsonConvert.SerializeObject(r)); }