/// <summary>
 /// 用户积分
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public JsonResult GetIntergalUser(int id)
 {
     try
     {
         List <int>    datacount   = new List <int>();
         List <string> dataname    = new List <string>();
         var           model       = HelperHttpClient.GetAll("get", "WaitRead/GetUserIntergal?id=" + id, null);
         var           list        = JsonConvert.DeserializeObject <List <UserIntegral> >(model).OrderByDescending(m => m.Integral_Num);
         EchartModel   echartModel = new EchartModel();
         foreach (var item in list)
         {
             echartModel.name  = item.User_Name;
             echartModel.value = item.Integral_Num;
             datacount.Add(echartModel.value);
             dataname.Add(echartModel.name);
         }
         echartModel.dataname  = dataname;
         echartModel.datacount = datacount;
         return(Json(echartModel));
     }
     catch (Exception)
     {
         return(null);
     }
 }
        /// <summary>
        /// 运行情况Echarts
        /// </summary>
        /// <returns></returns>
        public JsonResult GetEchartRunCondition()
        {
            List <int>    datacount   = new List <int>();
            List <string> dataname    = new List <string>();
            var           list        = HelperHttpClient.GetAll("get", "WaitRead/GetRunConditionList");
            var           condition   = JsonConvert.DeserializeObject <List <GoalStateGoal> >(list);
            EchartModel   echartModel = new EchartModel();

            foreach (var item in condition)
            {
                echartModel.name  = item.GoalState_Name;
                echartModel.value = item.count;
                datacount.Add(echartModel.value);
                dataname.Add(echartModel.name);
            }
            echartModel.dataname  = dataname;
            echartModel.datacount = datacount;
            return(Json(echartModel));
        }