/// <summary> /// 更新楼宇信息矢量数据 /// </summary> /// <param name="request"></param> /// <returns></returns> public string Post(BMSLYXXGeoDataUpdate request) { try { using (StreamReader sr = new StreamReader(request.RequestStream)) { string ret = sr.ReadToEnd(); if (ret == "") { ret = sr.ReadToEnd(); } var(userName, token, content) = CMSHelper.SerializeText(ret); IGroup cms = Helper.GetGrain <IGroup>(0); Type t = request.GetType(); if (CMSHelper.CheckAPIConfigurable(t) && cms.CheckAPIPermession(userName, token, t.FullName).Result) { IBMSHY hybms = Helper.GetGrain <IBMSHY>(0); string response = hybms.GeoDataLYXXUpdate(content).Result; return(response); } return(Helper.PermessionError); } } catch { return(Helper.AbnormalError); } }