32 lines
1.2 KiB
C#
32 lines
1.2 KiB
C#
//using System.Text;
|
|
//using YLErp.Web.Hubs;
|
|
|
|
namespace YLErp.Web.Controllers
|
|
{
|
|
//public class MessageAPIController : Controller
|
|
//{
|
|
// //public JsonResult RealTimeNotify(string message)
|
|
// //{
|
|
// // if (!PS.Config.ErpElement.ShowRealTimeServiceNotify)
|
|
// // {
|
|
// // return Json(new { result = "OK" }, JsonRequestBehavior.AllowGet);
|
|
// // }
|
|
// // var roles = PS.Config.ErpElement.RealTimeServiceNotifyRoles;
|
|
// // if (roles.IsNullOrWhiteSpace())
|
|
// // {
|
|
// // return Json(new { result = "OK" }, JsonRequestBehavior.AllowGet);
|
|
// // }
|
|
// // var hub = GlobalHost.ConnectionManager.GetHubContext<NotifyHub>();
|
|
// // hub.Clients.All.RealTimeNotify(message);
|
|
// // return Json(new { result = "OK" }, JsonRequestBehavior.AllowGet);
|
|
// //}
|
|
|
|
// //public JsonResult UpdateSystemDate()
|
|
// //{
|
|
// // LogFactory.GetLogger<MessageAPIController>().Info("UpdateSystemDate");
|
|
// // valuedateBLL.ResetValueDate();
|
|
// // return Json("OK", JsonRequestBehavior.AllowGet);
|
|
// //}
|
|
//}
|
|
}
|