using System; using System.Text; using System.Web; using WX.CRM.BLL.Util; using WX.CRM.Common; using WX.CRM.DataSynFactory.Templates; namespace WX.CRM.DataSynFactory.Cmd { public class Client_Active_IMP : Interfaces.IDataImportSvr { private SecurityHelper sHelper = new SecurityHelper(); public bool GenerateBusinessOne(Client_Active t) { try { var url = string.Format("http://localhost:806/ResourceService.svc/Join?content={0}&clientid={1}&sign={2}", HttpUtility.UrlEncode(t.content), t.clientid, HttpUtility.UrlEncode(t.sign)); LogHelper.Info("url:" + url); var rep = Utility.PostData(url, Encoding.UTF8); //LogHelper.Info("rep:" + rep); var decyptRep = sHelper.decyptData("UPWEBSITE", HttpUtility.UrlDecode(Utility.JSONToObject(rep))); var obj = Utility.JSONToObject(decyptRep); return obj.result; } catch (Exception ex) { LogHelper.Error("Client_Active,营业部入库失败:" + ex); return false; } } private class retObj { public bool result { get; set; } } } }