designHelper.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. using BizCom;
  2. using Newtonsoft.Json;
  3. using NPOI.POIFS.Properties;
  4. using NPOI.SS.Formula.Functions;
  5. using SiteCore.Handler;
  6. using SiteCore.taoObj;
  7. using SQLData;
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Collections.Specialized;
  11. using System.Data;
  12. using System.Linq;
  13. using System.Net;
  14. using System.Net.Http;
  15. using System.Reflection;
  16. using System.Runtime.Remoting.Messaging;
  17. using System.Runtime.Remoting.Metadata.W3cXsd2001;
  18. using System.Security.Policy;
  19. using System.Text;
  20. using System.Text.RegularExpressions;
  21. using System.Threading.Tasks;
  22. using System.Web;
  23. using static NHibernate.Linq.Visitors.LeftJoinDetector;
  24. using static SiteCore.taoObj.work_core_vo;
  25. namespace SiteCore.Handler
  26. {
  27. public class designHelper : BaseHandler, IHttpHandler
  28. {
  29. public void ProcessRequest(HttpContext context)
  30. {
  31. if (UrlParmsCheck("t"))
  32. {
  33. String tname = GetString("t");
  34. MethodInfo method;
  35. Type type = this.GetType();
  36. method = type.GetMethod(tname);
  37. con = context;
  38. if (method == null)
  39. {
  40. conError("找不到对应方法,服务器返回错误");
  41. return;
  42. }
  43. successFlag = false;
  44. context.Response.ContentType = "application/json";
  45. context.Response.Headers.Set("Access-Control-Allow-Origin", "*");
  46. try
  47. {
  48. method.Invoke(this, null);
  49. }
  50. catch (Exception ex)
  51. {
  52. conError("处理接口错误,服务器返回错误");
  53. }
  54. finally
  55. {
  56. }
  57. }
  58. }
  59. static string pUrl = "http://47.122.60.212:8181/api/originalOrder/";
  60. //static string pUrl = "http://47.122.40.91:9999/api/manager/";
  61. static HttpHelper tb_http = new HttpHelper();
  62. public static designApiResponseVo API_GetPrintData_CreateOrder(CeErpTradeCell ceErpTradeCell, string post = "")
  63. {
  64. if (ceErpTradeCell.IsSample == 2)
  65. {
  66. return new designApiResponseVo(-1, "补差价订单不需要过设计系统");
  67. }
  68. string post_url = pUrl + "add";
  69. //string post_url = pUrl + "createOrder";
  70. CeErpOrderFormData formData = null;
  71. if (post != "SysAdmin" && post != "Summarize")
  72. {
  73. if (!ceErpTradeCell.ctid.Contains("S_"))
  74. {
  75. formData = CeErpOrderFormData.GetByTid(ceErpTradeCell.ctid.ToString());
  76. if (formData == null)
  77. {
  78. return new designApiResponseVo(-1, "请填写订单的手机号或者微信号才可指派到设计系统");
  79. }
  80. }
  81. }
  82. designApiResponseVo response = commonHelper.checkOrderDesignInfo(ceErpTradeCell, post);
  83. if (response.code != 200)
  84. {
  85. return response;
  86. }
  87. WebClient wc = new WebClient();
  88. wc.Encoding = Encoding.GetEncoding("utf-8");
  89. //json参数
  90. NameValueCollection PostVars = getParams(ceErpTradeCell);
  91. if (ceErpTradeCell.CustomerUserId > 0)
  92. {
  93. string sql = "select top 1 Name,Mobile from view_ErpUser where ID = '" + ceErpTradeCell.CustomerUserId + "'";
  94. DataTable dt = DbHelper.DbConn.ExecuteDataset(sql).Tables[0];
  95. PostVars.Add("customerName", dt.Rows[0]["Name"].ToString());
  96. PostVars.Add("customerTel", dt.Rows[0]["Mobile"].ToString());
  97. }
  98. //{"msg":"推送成功","code":200,"success":true}
  99. string result = "";
  100. try
  101. {
  102. byte[] ret = wc.UploadValues(post_url, "POST", PostVars);
  103. string remoteInfo = Encoding.GetEncoding("utf-8").GetString(ret);
  104. response = JsonConvert.DeserializeObject<designApiResponseVo>(remoteInfo);
  105. result = "设计共创:失败-" + response.msg;
  106. if (response.code == 200)
  107. {
  108. result = "设计共创:成功";
  109. CeErpSukuraData.createInfo(ceErpTradeCell.ctid, 2);
  110. //commonHelper.updateDataTradeCellDesignInfo(ceErpTradeCell.ctid);
  111. }
  112. }
  113. catch (Exception ex)
  114. {
  115. XLog.SaveLog(0, "API_GetPrintData_CreateOrder:" + ex.Message);
  116. }
  117. return new designApiResponseVo(200, result);
  118. }
  119. public static designApiResponseVo API_update_order(CeErpTradeCell ceErpTradeCell)
  120. {
  121. string post_url = pUrl + "workCore";
  122. WebClient wc = new WebClient();
  123. wc.Encoding = Encoding.GetEncoding("utf-8");
  124. NameValueCollection PostVars = getParams(ceErpTradeCell);
  125. PostVars.Add("actionName", "orderRemarks");
  126. PostVars.Add("orderNumber", ceErpTradeCell.ctid);
  127. string result = "";
  128. try
  129. {
  130. byte[] ret = wc.UploadValues(post_url, "POST", PostVars);
  131. string remoteInfo = Encoding.GetEncoding("utf-8").GetString(ret);
  132. designApiResponseVo response = JsonConvert.DeserializeObject<designApiResponseVo>(remoteInfo);
  133. result = "设计共创:失败-" + response.msg;
  134. if (response.code == 200)
  135. {
  136. result = "设计共创:成功";
  137. CeErpSukuraData.createInfo(ceErpTradeCell.ctid, 2);
  138. //commonHelper.updateDataTradeCellDesignInfo(ceErpTradeCell.ctid);
  139. }
  140. }
  141. catch (Exception ex)
  142. {
  143. XLog.SaveLog(0, "API_GetPrintData_CreateOrder:" + ex.Message);
  144. }
  145. return new designApiResponseVo(200, result);
  146. }
  147. private static NameValueCollection getParams(CeErpTradeCell ceErpTradeCell)
  148. {
  149. Boolean isOldCustomerText = false;
  150. Boolean isReturn = false;
  151. Boolean isGai = false;
  152. if (ceErpTradeCell.IsOldCustomer == 1)
  153. {
  154. isOldCustomerText = true;
  155. }
  156. if (ceErpTradeCell.IsReturn > 0)
  157. {
  158. isReturn = true;
  159. }
  160. if (ceErpTradeCell.MemoOpt == 1)
  161. {
  162. isGai = true;
  163. }
  164. CeErpTrade ceErpTrade = CeErpTrade.Get(ceErpTradeCell.tid);
  165. CeErpShop ceErpShop = CeErpShop.Get(ceErpTradeCell.ShopId);
  166. CeErpTradeCellExtend ceErpTradeCellExtend = CeErpTradeCellExtend.getByTid(ceErpTradeCell.ctid);
  167. //Dictionary<string, object> dataDic = ToDictionary(ro_json);
  168. //string urlData = ToUrlParams(dataDic);
  169. //string sql_pay = "INSERT INTO CE_ErpToDesignLog (ctid, ctime) VALUES ('" + ceErpTradeCell.ctid + "', '" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "');";
  170. //CeErpTradeCell.ExecuteNonQuery(sql_pay.ToString());
  171. NameValueCollection PostVars = new NameValueCollection();
  172. PostVars.Add("outId", ceErpTradeCell.ID.ToString());
  173. PostVars.Add("productId", ceErpTradeCell.ProductId.ToString());
  174. PostVars.Add("payment", ceErpTradeCell.payment.ToString());
  175. PostVars.Add("isUrgent", ceErpTradeCell.IsUrgency.ToString());
  176. PostVars.Add("customerMemo", ceErpTradeCell.CustomerMemo);
  177. PostVars.Add("shopName", ceErpShop.ShopName);
  178. PostVars.Add("buyerNick", ceErpTrade.buyer_nick != "" ? ceErpTrade.buyer_nick : "lingtao");
  179. PostVars.Add("receiverName", ceErpTrade.receiver_name);
  180. PostVars.Add("receiverMobile", ceErpTrade.receiver_mobile);
  181. PostVars.Add("receiverState", ceErpTrade.receiver_state);
  182. PostVars.Add("receiverCity", ceErpTrade.receiver_city);
  183. PostVars.Add("receiverDistrict", ceErpTrade.receiver_district);
  184. PostVars.Add("receiverAddress", ceErpTrade.receiver_address);
  185. PostVars.Add("tids", ceErpTradeCell.ctid);
  186. PostVars.Add("isOldUser", isOldCustomerText.ToString());
  187. PostVars.Add("sellerMemo", ceErpTradeCell.seller_memo);
  188. PostVars.Add("orderRemarks", ceErpTradeCell.seller_memo);
  189. PostVars.Add("isChange", isGai.ToString());
  190. PostVars.Add("isBack", isReturn.ToString());
  191. PostVars.Add("tid", ceErpTradeCell.tid);
  192. PostVars.Add("isDianziOrder", ceErpTradeCell.isDianziOrder.ToString());
  193. PostVars.Add("orderUnique", ceErpTradeCell.OrderSn);
  194. PostVars.Add("ptid", ceErpTradeCell.ptid);
  195. PostVars.Add("SplitTag", ceErpTradeCell.SplitTag);
  196. PostVars.Add("remarkSign", ceErpTradeCell.MemoOpt.ToString());
  197. PostVars.Add("otherMemo", ceErpTradeCell.OtherMemo);
  198. PostVars.Add("parentSplitNo", ceErpTradeCell.ParentSplitNo);
  199. if (ceErpTradeCellExtend != null)
  200. {
  201. PostVars.Add("productFirName", ceErpTradeCellExtend.cate1);/// 分类1
  202. PostVars.Add("productFirId", ceErpTradeCellExtend.cate1Id);/// 分类id
  203. PostVars.Add("productSecName", ceErpTradeCellExtend.cate2);/// 分类2
  204. PostVars.Add("productSecId", ceErpTradeCellExtend.cate2Id);/// 分类id
  205. PostVars.Add("productThirdId", ceErpTradeCellExtend.cate3Id);/// 分类id
  206. PostVars.Add("sceneName", ceErpTradeCellExtend.scene); /// 场景
  207. PostVars.Add("sceneId", ceErpTradeCellExtend.sceneId); /// 场景id
  208. PostVars.Add("productSizeW", ceErpTradeCellExtend.length.ToString()); /// 长
  209. PostVars.Add("productSizeH", ceErpTradeCellExtend.height.ToString()); /// 高
  210. PostVars.Add("productSizeL", ceErpTradeCellExtend.width.ToString()); /// 宽
  211. PostVars.Add("productCraftName", ceErpTradeCellExtend.craft); /// 工艺
  212. PostVars.Add("offerAmount", ceErpTradeCellExtend.offerAmount.ToString()); /// 报价金额
  213. PostVars.Add("styleCount", ceErpTradeCellExtend.numbers.ToString()); /// 款数
  214. PostVars.Add("materialName", ceErpTradeCellExtend.material); /// 材质
  215. PostVars.Add("materialId", ceErpTradeCellExtend.materialId); /// 材质id
  216. PostVars.Add("stylePricing", ceErpTradeCellExtend.numberType); /// 多款类型
  217. PostVars.Add("productSceneName", ceErpTradeCellExtend.typeScene); /// 品类场景
  218. PostVars.Add("productSceneId", ceErpTradeCellExtend.typeSceneId); /// 品类场景id
  219. PostVars.Add("opScene", ceErpTradeCellExtend.opScene); /// 运营场景
  220. PostVars.Add("opSceneId", ceErpTradeCellExtend.opSceneId); /// 运营场景id
  221. PostVars.Add("quantity", ceErpTradeCellExtend.quantity.ToString()); /// 数量
  222. PostVars.Add("productUnit", ceErpTradeCellExtend.numberUnit); /// 数量单位
  223. PostVars.Add("spuId", ceErpTradeCellExtend.spu_id); /// spuid
  224. PostVars.Add("recSize", ceErpTradeCellExtend.recSize); /// 推荐尺寸
  225. PostVars.Add("productSizeUnit", ceErpTradeCellExtend.sizeUnit); /// 尺寸单位
  226. PostVars.Add("orderFrom", ceErpTradeCellExtend.orderFrom.ToString()); /// 【订单来源】"10":第三方平台"15":私域电商"20":ERP"30":售前系统
  227. PostVars.Add("orderType", ceErpTradeCellExtend.orderType.ToString()); /// 【订单类型】"10":线上单"15":线下单"20":补差单"30":售后单
  228. PostVars.Add("discountAmount", ceErpTradeCellExtend.discountAmount.ToString());//折扣金额
  229. PostVars.Add("differentAmount", ceErpTradeCellExtend.differentAmount.ToString());//补差金额
  230. PostVars.Add("differentSplitNo", ceErpTradeCellExtend.differentSplitNo);//补差识别号
  231. }
  232. return PostVars;
  233. }
  234. /**
  235. *actionName:
  236. * followRemarks 跟单备注
  237. * orderRemarks 修改订单备注
  238. * rebutDesign 下单部打回设计单
  239. * afterDesign 售后设计单
  240. * changeDesign 改稿/定稿/加急
  241. * remarkSign 1改稿2定稿3加急
  242. * closeDesign 关闭订单
  243. * resetDesign 重置订单
  244. * packageDesign 顺丰状态
  245. * finishDesign 顺丰状态
  246. * approveDesign 下单部通过
  247. **/
  248. public static void API_WorkCore(string orderNumber, string actionName, string orderRemarks = "", int remarkSign = 0, string reasonRemarks = "", string isSf = "", int demandExamine = 0)
  249. {
  250. string post_url = pUrl + "workCore";
  251. WebClient wc = new WebClient();
  252. wc.Encoding = Encoding.GetEncoding("utf-8");
  253. NameValueCollection PostVars = new NameValueCollection();
  254. PostVars.Add("orderNumber", orderNumber);
  255. PostVars.Add("actionName", actionName);
  256. if (remarkSign > 0)
  257. {
  258. PostVars.Add("remarkSign", remarkSign.ToString());
  259. }
  260. if (orderRemarks != "")
  261. {
  262. PostVars.Add("orderRemarks", orderRemarks);
  263. }
  264. if (reasonRemarks != "")
  265. {
  266. PostVars.Add("reasonRemarks", reasonRemarks);
  267. }
  268. if (isSf != "")
  269. {
  270. PostVars.Add("packageSign", isSf);
  271. }
  272. if (demandExamine != 0)
  273. {
  274. PostVars.Add("demandExamine", demandExamine.ToString());
  275. }
  276. string remoteInfo = "";
  277. try
  278. {
  279. byte[] ret = wc.UploadValues(post_url, "POST", PostVars);
  280. remoteInfo = Encoding.GetEncoding("utf-8").GetString(ret);
  281. }
  282. catch (Exception ex)
  283. {
  284. XLog.SaveLog(0, "API_WorkCore:" + ex.Message);
  285. }
  286. }
  287. /**
  288. *actionName:
  289. * followRemarks 跟单备注
  290. * orderRemarks 修改订单备注
  291. * rebutDesign 下单部打回设计单
  292. * afterDesign 售后设计单
  293. * changeDesign 改稿/定稿/加急
  294. * remarkSign 1改稿2定稿3加急
  295. * closeDesign 关闭订单
  296. * resetDesign 重置订单
  297. * packageDesign 顺丰状态
  298. * finishDesign 上传设计
  299. * repairDesign 补差金额
  300. * approveDesign 下单部通过
  301. * afterOver 售后结束
  302. **/
  303. public static void API_WorkCore(ApiVo vo)
  304. {
  305. string post_url = pUrl + "workCore";
  306. WebClient wc = new WebClient();
  307. wc.Encoding = Encoding.GetEncoding("utf-8");
  308. NameValueCollection PostVars = new NameValueCollection();
  309. PostVars.Add("orderNumber", vo.orderNumber);
  310. PostVars.Add("actionName", vo.actionName);
  311. PostVars.Add("isDesign", vo.isDesign.ToString());
  312. PostVars.Add("isOriginal", vo.isOriginal.ToString());
  313. if (vo.remarkSign > 0)
  314. {
  315. PostVars.Add("remarkSign", vo.remarkSign.ToString());
  316. }
  317. if (vo.orderRemarks != "")
  318. {
  319. PostVars.Add("orderRemarks", vo.orderRemarks);
  320. }
  321. if (vo.reasonRemarks != "")
  322. {
  323. PostVars.Add("reasonRemarks", vo.reasonRemarks);
  324. }
  325. if (vo.isSf != "")
  326. {
  327. PostVars.Add("packageSign", vo.isSf);
  328. }
  329. if (vo.demandExamine != 0)
  330. {
  331. PostVars.Add("demandExamine", vo.demandExamine.ToString());
  332. }
  333. if (vo.payment != 0)
  334. {
  335. PostVars.Add("payment", vo.payment.ToString());
  336. }
  337. if (vo.designFree != 0)
  338. {
  339. PostVars.Add("designFree", vo.designFree.ToString());
  340. }
  341. if (vo.responsibleId != 0)
  342. {
  343. PostVars.Add("responsibleId", vo.responsibleId.ToString());
  344. }
  345. if (!string.IsNullOrEmpty(vo.afterFiles))
  346. {
  347. PostVars.Add("afterFiles", vo.afterFiles);
  348. }
  349. string remoteInfo = "";
  350. try
  351. {
  352. byte[] ret = wc.UploadValues(post_url, "POST", PostVars);
  353. remoteInfo = Encoding.GetEncoding("utf-8").GetString(ret);
  354. if ("orderRemarks".Equals(vo.actionName))
  355. {
  356. XLog.SaveLog(0, "API_WorkCore:" + remoteInfo + vo.actionName);
  357. }
  358. }
  359. catch (Exception ex)
  360. {
  361. XLog.SaveLog(0, "API_WorkCore:" + ex.Message);
  362. }
  363. }
  364. public static void api_approveDesign(string orderNumber)
  365. {
  366. string post_url = pUrl + "approveDesign";
  367. WebClient wc = new WebClient();
  368. wc.Encoding = Encoding.GetEncoding("utf-8");
  369. NameValueCollection PostVars = new NameValueCollection();
  370. PostVars.Add("orderNumber", orderNumber);
  371. string remoteInfo = "";
  372. try
  373. {
  374. byte[] ret = wc.UploadValues(post_url, "POST", PostVars);
  375. remoteInfo = Encoding.GetEncoding("utf-8").GetString(ret);
  376. }
  377. catch (Exception ex)
  378. {
  379. XLog.SaveLog(0, "api_approveDesign:" + ex.Message);
  380. }
  381. }
  382. /**
  383. *actionName:
  384. * refundIng 退款申请
  385. * refundEd 已退款
  386. * refundCancel 取消退款
  387. **/
  388. public static void API_refundOrder(string orderNumber, string actionName, string remark)
  389. {
  390. string post_url = pUrl + "refundOrder";
  391. WebClient wc = new WebClient();
  392. wc.Encoding = Encoding.GetEncoding("utf-8");
  393. NameValueCollection PostVars = new NameValueCollection();
  394. PostVars.Add("orderNumber", orderNumber);
  395. PostVars.Add("actionName", actionName);
  396. PostVars.Add("orderRemarks", remark);
  397. string remoteInfo = "";
  398. try
  399. {
  400. byte[] ret = wc.UploadValues(post_url, "POST", PostVars);
  401. remoteInfo = Encoding.GetEncoding("utf-8").GetString(ret);
  402. }
  403. catch (Exception ex)
  404. {
  405. XLog.SaveLog(0, "API_refundOrder:" + ex.Message);
  406. }
  407. }
  408. public static string API_GetPrintData_Refund(CeErpTradeCell ceErpTradeCell)
  409. {
  410. string post_url = pUrl + "refund";
  411. //json参数
  412. List<string> postLst = new List<string>();
  413. Boolean isOldCustomerText = false;
  414. Boolean isReturn = false;
  415. Boolean isGai = false;
  416. if (ceErpTradeCell.IsOldCustomer == 1)
  417. {
  418. isOldCustomerText = true;
  419. }
  420. if (ceErpTradeCell.IsReturn > 0)
  421. {
  422. isReturn = true;
  423. }
  424. if (ceErpTradeCell.MemoOpt == 1)
  425. {
  426. isGai = true;
  427. }
  428. CeErpTrade ceErpTrade = CeErpTrade.Get(ceErpTradeCell.tid);
  429. CeErpShop ceErpShop = CeErpShop.Get(ceErpTradeCell.ShopId);
  430. var res_obj = new
  431. {
  432. outId = ceErpTradeCell.ID,
  433. productId = ceErpTradeCell.ProductId,
  434. payment = ceErpTradeCell.payment,
  435. isUrgent = ceErpTradeCell.IsUrgency,
  436. customerMemo = ceErpTradeCell.CustomerMemo,
  437. shopName = ceErpShop.ShopName,
  438. buyerNick = ceErpTrade.buyer_nick != "" ? ceErpTrade.buyer_nick : "lingtao",
  439. receiverName = ceErpTrade.receiver_name,
  440. receiverMobile = ceErpTrade.receiver_mobile,
  441. receiverState = ceErpTrade.receiver_state,
  442. receiverCity = ceErpTrade.receiver_city,
  443. receiverDistrict = ceErpTrade.receiver_district,
  444. receiverAddress = ceErpTrade.receiver_address,
  445. tids = ceErpTradeCell.ctid,
  446. isOldUser = isOldCustomerText,
  447. sellerMemo = ceErpTradeCell.seller_memo,
  448. isChange = isGai,
  449. isBack = isReturn,
  450. tid = ceErpTradeCell.tid
  451. };
  452. string ro_json = JsonConvert.SerializeObject(res_obj);
  453. //;***************************************************
  454. ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
  455. HttpItem item = new HttpItem()
  456. {
  457. URL = post_url,
  458. Method = "POST",
  459. Postdata = ro_json
  460. };
  461. item.PostEncoding = Encoding.UTF8;
  462. HttpResult hResult = tb_http.GetHtml(item);
  463. return hResult.Html;
  464. }
  465. public static string API_GetPrintData_ModifyOrder(string tid, string seller_memo, Boolean isGai, Boolean isReturn, string returnReason = "")
  466. {
  467. string post_url = pUrl + "modify";
  468. //json参数
  469. List<string> postLst = new List<string>();
  470. CeErpTradeCell ceErpTradeCell = CeErpTradeCell.GetByCtid(tid);
  471. CeErpShop ceErpShop = null;
  472. if (ceErpTradeCell != null)
  473. {
  474. ceErpShop = CeErpShop.Get(ceErpTradeCell.ShopId);
  475. }
  476. var res_obj = new
  477. {
  478. outId = tid,
  479. orderText = seller_memo,
  480. isChange = isGai,
  481. isBack = isReturn,
  482. returnReason = returnReason,
  483. };
  484. string ro_json = JsonConvert.SerializeObject(res_obj);
  485. //***************************************************
  486. ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
  487. HttpItem item = new HttpItem()
  488. {
  489. URL = post_url,
  490. Method = "POST",
  491. Postdata = ro_json
  492. };
  493. item.PostEncoding = Encoding.UTF8;
  494. HttpResult hResult = tb_http.GetHtml(item);
  495. return hResult.Html;
  496. }
  497. }
  498. }