Exemplo n.º 1
0
        public string WriteCitExtraInfo(string json)
        {
            //公共方法
            ResultInfo resultInfo = new ResultInfo();

            try
            {
                JObject obj = (JObject)JsonConvert.DeserializeObject(json);

                string citFile   = Convert.ToString(obj["citFile"]);
                string extraInfo = Convert.ToString(obj["extraInfo"]);

                bool data = cfprocess.WriteCitExtraInfo(citFile, extraInfo);

                resultInfo.flag = 1;
                resultInfo.msg  = "";
                resultInfo.data = data.ToString();
            }
            catch (Exception ex)
            {
                resultInfo.flag = 0;
                resultInfo.msg  = ex.Message;
            }

            return(JsonConvert.SerializeObject(resultInfo));
        }