private bool chagestat(string url, MsgStat msg)
 {
     bool httpres = false;
     if (url != null && msg != null)
     {
         string jsonstr = JsonConvert.SerializeObject(msg);
         string postresult = http.postjson(url, jsonstr);
         if (postresult == "数据提交完毕")
         {
             httpres = true;
         }
     }
     return httpres;
 }
Example #2
0
        private bool chagestat(string url, MsgStat msg)
        {
            bool httpres = false;

            if (url != null && msg != null)
            {
                string jsonstr    = JsonConvert.SerializeObject(msg);
                string postresult = http.postjson(url, jsonstr);
                if (postresult == "数据提交完毕")
                {
                    httpres = true;
                }
            }
            return(httpres);
        }