private void SelectMSMQLog(int projectId, int gameId, int serverId) { PythonResult pythonResult = new PythonResult(); pythonResult.RunTime = DateTime.Now.ToLongTimeString(); try { string messageQueuePath = ""; //var gameSet = new CacheGameSet().Get(gameId, serverId); //if (gameSet != null) //{ // var dev = SvnProcesser.Project(projectId); // messageQueuePath = string.Format(gameSet.MessageQueuePath, serverId, dev.Ip); //} if (!string.IsNullOrEmpty(messageQueuePath)) { SimplePlanManagerService simplePlanManagerService = new SimplePlanManagerService();//计划任务服务对象 var planList = simplePlanManagerService.GetSimplePlanInfoList(120).FindAll(m => m.Name.StartsWith(messageQueuePath)); pythonResult.Result = planList; } else { pythonResult.Result = string.Format("服务器MessageQueuePath的GameId:{0},ServerId:{1}配置为空", gameId, serverId); } } catch (Exception ex) { pythonResult.Result = ex.Message; } var isodata = new IsoDateTimeConverter() { DateTimeFormat = "yyyy'-'MM'-'dd' 'HH':'mm" }; _context.Response.Write(JsonConvert.SerializeObject(pythonResult, isodata)); }