parse.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. using System.Text;
  2. using dodohold.core;
  3. using System.Text.RegularExpressions;
  4. using System.Net;
  5. using System.Linq;
  6. using System.Security.Cryptography;
  7. using TencentCloud.Ecm.V20190719.Models;
  8. using System.Diagnostics;
  9. using static dodohold.core.ZTOExpress.CreateOrderArgs;
  10. namespace molilian.core
  11. {
  12. public partial class AlimamaPlus
  13. {
  14. private string _accountName;
  15. private int _accountId;
  16. private string _company;
  17. private string _tb_token;
  18. private string _floorId;
  19. private string _refpid;
  20. private string _user_agent;
  21. private string _cookies;
  22. private WebProxy? _proxy = null;
  23. private string _api;
  24. private int _api_id = 0;
  25. public TkConfigDTO _config;
  26. private static string _end_point;
  27. private static TkPoolDTO _account;
  28. static Random _random = new Random();
  29. public static string _url_pattern = @"https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]";
  30. static AlimamaPlus()
  31. {
  32. _end_point = Environment.GetEnvironmentVariable("EndPoint");
  33. }
  34. public AlimamaPlus(TkPoolDTO account)
  35. {
  36. // string accountName, string tb_token, string floorId, string refpid,
  37. // string cookies, string user_agent, string nodeName
  38. _config = TkConfigCore.Get();
  39. _account = account;
  40. _accountId = account.id;
  41. _accountName = account.name;
  42. _company = account.company;
  43. _tb_token = account.tb_token;
  44. _floorId = account.floorId;
  45. _refpid = account.refpid;
  46. _cookies = account.cookies;
  47. _user_agent = account.user_agent;
  48. if (!string.IsNullOrEmpty(account.nodeName))
  49. {
  50. _proxy = ProxyNodesCore.GetOne(account.nodeName);
  51. }
  52. _api = account.api;
  53. _api_id = account.api_id;
  54. }
  55. public bool ShouldIgnoreOtherAff(string content)
  56. {
  57. TkDataDTO result = new();
  58. //(_, _, var link_type, _) = InternalTextProcessing(content, ref result);
  59. InternalTextProcessing(content, ref result);
  60. return result.link_type == LinkTypeEnum.other_aff;
  61. }
  62. public TkDataDTO UnionParse(string content, ref TkDataDTO result)
  63. {
  64. InternalTextProcessing(content, ref result);
  65. //(result.success, result.content, result.link_type, result.shortLinkurl) = InternalTextProcessing(content,ref result);
  66. if (result.link_type == LinkTypeEnum.other_aff)
  67. {
  68. result.channel = TkChannelEnum.tb;
  69. result.channel_type = ChannelTypeEnum.tb;
  70. result.link_type = LinkTypeEnum.unknown;
  71. result.success = false;
  72. result.message = "放弃转链";
  73. result.reason = "其他推广链接";
  74. result.subCode = TkSubCodeEnum.OtherPromo;
  75. result.accountName = string.Empty;
  76. result.content = content;
  77. result.deeplink_url = GetDeeplink(null);
  78. result.itemName = GetTitle(content);
  79. }
  80. else
  81. {
  82. //处理过后的正文 用于转链
  83. if (result.success) content = result.content;
  84. result = alimamaParse(content, result);
  85. }
  86. result.content = content;
  87. result.link_type = result.link_type;
  88. return result;
  89. }
  90. public async Task<TkDataDTO> UnionParseAsync(string content, TkDataDTO result,
  91. CancellationToken cancellationToken = default,
  92. Dictionary<string, long> swData = null)
  93. {
  94. result.itemName = "点击打开淘宝APP";
  95. result = await InternalTextProcessingAsync(content, result, cancellationToken, swData);
  96. if (result.link_type == LinkTypeEnum.other_aff)
  97. {
  98. //============================== 其他推广链接 ==============================
  99. result.channel = TkChannelEnum.tb;
  100. result.channel_type = ChannelTypeEnum.tb;
  101. result.link_type = LinkTypeEnum.other_aff;
  102. result.success = false;
  103. result.message = "放弃转链";
  104. result.reason = "其他推广链接";
  105. result.subCode = TkSubCodeEnum.OtherPromo;
  106. result.accountName = string.Empty;
  107. result.content = content;
  108. result.deeplink_url = GetDeeplink(null);
  109. //result.itemName = GetTitle(content);
  110. return result;
  111. }
  112. //处理过后的正文 用于转链
  113. if (!result.success)
  114. {
  115. switch (result.link_type)
  116. {
  117. case LinkTypeEnum.profile:
  118. case LinkTypeEnum.live:
  119. case LinkTypeEnum.video:
  120. case LinkTypeEnum.note:
  121. case LinkTypeEnum.goods:
  122. case LinkTypeEnum.baseDomain:
  123. result.reason = string.Empty;
  124. break;
  125. default:
  126. result.reason = "非标准链接";
  127. result.subCode = TkSubCodeEnum.NonStdLink;
  128. return result;
  129. }
  130. }
  131. //============================== 放弃转链-地区过滤 ==============================
  132. bool is_ignore2 = FlowControlIgnoreRequest(out string reason);
  133. if (is_ignore2)
  134. {
  135. result.success = false;
  136. result.message = "放弃转链";
  137. result.reason = reason;
  138. result.subCode = TkSubCodeEnum.TrafficCtrl;
  139. return result;
  140. }
  141. result = await alimamaParseAsync(result.content, result, cancellationToken);
  142. if (!result.success)
  143. {
  144. result.itemName = "点击打开淘宝APP";
  145. }
  146. if (string.IsNullOrEmpty(result.itemName) || result.link_type == LinkTypeEnum.profile)
  147. {
  148. result.itemName = "点击打开淘宝APP";
  149. }
  150. return result;
  151. }
  152. public static string ReplaceUrls(string content, string shortLink)
  153. {
  154. if (string.IsNullOrEmpty(content) || string.IsNullOrEmpty(shortLink)) return content;
  155. string result = content;
  156. Regex regex = new(_url_pattern);
  157. MatchCollection matches = regex.Matches(content);
  158. foreach (Match m in matches.Cast<Match>())
  159. {
  160. string url = m.Value;
  161. if (url.Contains("https://s.tb.cn/") ||
  162. url.Contains("http://s.tb.cn/") ||
  163. url.Contains("http://m.tb.cn/") ||
  164. url.Contains("https://m.tb.cn/"))
  165. {
  166. result = result.Replace(url, shortLink);
  167. }
  168. }
  169. return result;
  170. }
  171. public static string RemoveUrls(string content)
  172. {
  173. if (string.IsNullOrEmpty(content)) return content;
  174. string result = content;
  175. Regex regex = new(_url_pattern);
  176. MatchCollection matches = regex.Matches(content);
  177. foreach (Match m in matches.Cast<Match>())
  178. {
  179. string url = m.Value;
  180. result = result.Replace(url, string.Empty);
  181. }
  182. return result;
  183. }
  184. public static string GetLink(string content)
  185. {
  186. if (string.IsNullOrEmpty(content)) return content;
  187. //string pattern = @"https?:\/\/?([\da-z\.-]+)\.([a-z]{2,6})(:\d{1,5})?([\/\w\.-]*)*\/?(#[\S]+)?(\?[\S]+)?";
  188. Regex regex = new(_url_pattern);
  189. MatchCollection matches = regex.Matches(content);
  190. string result = string.Empty;
  191. if (matches.Count > 0)
  192. {
  193. result = matches[^1].Value; // 返回第一个匹配到的 URL
  194. }
  195. result = result.Replace("&nbsp;", "");
  196. return result;
  197. }
  198. public static string GetTaobaoLink(string content)
  199. {
  200. if (string.IsNullOrEmpty(content)) return content;
  201. string result = content;
  202. string pattern = @"(https?://(?:[\w-]+\.)*(?:tb\.cn|taobao\.com|juhuasuan\.com|tmall\.com|tmall\.hk)(?:/[a-zA-Z0-9\-\._~:/?#[\]@!$&'()*+,;=%]*)?)";
  203. Regex regex = new(pattern, RegexOptions.IgnoreCase);
  204. MatchCollection matches = regex.Matches(content);
  205. if (matches.Count > 0)
  206. {
  207. return matches[^1].Value; // 返回第一个匹配到的 URL
  208. }
  209. return string.Empty;
  210. }
  211. public static string GetDeeplink(string url)
  212. {
  213. if (string.IsNullOrEmpty(url)) return "tbopen://m.taobao.com/tbopen/index.html";
  214. string result = $"tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav&module=h5&h5Url={url.UrlEncode()}";
  215. //string result = $"tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav&module=h5&bootImage=0&afcPromotionOpen=false&bc_fl_src=h5_huanduan&source=slk_dp&h5Url={url.UrlEncode()}";
  216. return result;
  217. }
  218. public static string GetTitle(string content)
  219. {
  220. if (string.IsNullOrEmpty(content)) return string.Empty;
  221. string url = GetLink(content);
  222. if (!string.IsNullOrEmpty(url)) content = content.Replace(url, string.Empty);
  223. content = content.Replace("点击链接直接打开 或者 淘宝搜索直接打开", string.Empty).Trim();
  224. string[] words = Regex.Split(content, @"\s+");
  225. string word = words[^1];
  226. word = word.TrimStart('「').TrimEnd('」');
  227. return word;
  228. }
  229. public static bool IgnoreRegionIncluded(string _ignoreRegions, string? ipInfo, out string regionInfo)
  230. {
  231. regionInfo = string.Empty;
  232. if (string.IsNullOrEmpty(_ignoreRegions) || string.IsNullOrEmpty(ipInfo)) return false;
  233. string[] parts = ipInfo.Split('|');
  234. string countryInfo = null;
  235. if (parts.Length >= 4)
  236. {
  237. countryInfo = parts[0];
  238. regionInfo = parts[3];
  239. }
  240. if (string.IsNullOrEmpty(regionInfo)) return false;
  241. if (string.IsNullOrEmpty(countryInfo)) return false;
  242. string[] ignoreRegions = _ignoreRegions.Split('|');
  243. if (ignoreRegions.Contains(regionInfo)) return true;
  244. if (ignoreRegions.Contains(countryInfo))
  245. {
  246. regionInfo = countryInfo;
  247. return true;
  248. }
  249. foreach (var region in ignoreRegions)
  250. {
  251. if ("海外".Equals(region) && !"中国".Equals(countryInfo) && !"0".Equals(countryInfo))
  252. {
  253. regionInfo = "海外";
  254. return true;
  255. }
  256. }
  257. return false;
  258. }
  259. public static async Task<bool> OtherPlatformAsync(string content)
  260. {
  261. try
  262. {
  263. //腾讯会议
  264. string wemeetId = await ToolParsePlus.GetWemeetIdAsync(content);
  265. if (!string.IsNullOrEmpty(wemeetId)) return true;
  266. //百度网盘
  267. string surl = string.Empty, pwd = string.Empty;
  268. _ = ToolParsePlus.GetPanLink(content, ref surl, ref pwd);
  269. if (!string.IsNullOrEmpty(surl)) return true;
  270. //JD
  271. string url = JdUnionPlus.GetLink(content);
  272. var urlType = JdUnionPlus.GetLinkType(url, out _, out _);
  273. if (urlType != LinkTypeEnum.unknown) return true;
  274. //DY
  275. url = DyUnionPlus.GetLink(content);
  276. urlType = DyUnionPlus.GetLinkType(content, url);
  277. if (urlType != LinkTypeEnum.unknown) return true;
  278. }
  279. catch { }
  280. return false;
  281. }
  282. public static bool MatchRegexes(string text, List<string> extended)
  283. {
  284. text = RemoveUrls(text);
  285. string special_symbols = $"\\$\\(\\)\\/\\#\\&\\<\\>฿¢¥¥$🗝₰₵₲¤₪₴€₤£₳《¢💰🔑🎵✔💲🔐📲";
  286. string[] base_patterns =
  287. [
  288. $@"(.*?\d{{2}}\s[a-zA-Z]{{2}}\d{{4}}\s.*?[{special_symbols}]+[a-zA-Z0-9\s]+[{special_symbols}]).*",
  289. $@"[{special_symbols}]+\s*([a-zA-Z]{{1,2}}\d{{2,4}}\s[a-zA-Z0-9]{{11}}|[a-zA-Z0-9]{{11}}[a-zA-Z]{{1,2}}\d{{2,4}}\s|[a-zA-Z0-9]{{11}})\s*[{special_symbols}]+",
  290. @"🍑♭ɑ◑下单|Tao宝"
  291. ];
  292. List<string> mergedArray = extended.Union(base_patterns).ToList();
  293. /*
  294. (.*?\\d{2}\\s[a-zA-Z]{2}\\d{4}\\s.*?[\\$\\(\\)\\/\\#\\&\\<\\>฿¢¥¥$🗝₰₵₲¤₪₴€₤£₳《¢💰🔑🎵✔💲🔐📲]+[a-zA-Z0-9\\s]+[\\$\\(\\)\\/\\#\\&\\<\\>฿¢¥¥$🗝₰₵₲¤₪₴€₤£₳《¢💰🔑🎵✔💲🔐📲])).*\n[\\$\\(\\)\\/\\#\\&\\<\\>฿¢¥¥$🗝₰₵₲¤₪₴€₤£₳《¢💰🔑🎵✔💲🔐📲]+\\s*([a-zA-Z]{1,2}\\d{2,4}\\s[a-zA-Z0-9]{11}|[a-zA-Z0-9]{11}[a-zA-Z]{1,2}\\d{2,4}\\s|[a-zA-Z0-9]{11})\\s*[\\$\\(\\)\\/\\#\\&\\<\\>฿¢¥¥$🗝₰₵₲¤₪₴€₤£₳《¢💰🔑🎵✔💲🔐📲]+\n🍑♭ɑ◑下单|Tao宝
  295. 【3瓶】恩威万蓝莓叶黄素酯软糖儿童成人上班族如酸涩肿胀可服用,<z5TYWAblvTw >:// HU7709,打開/
  296. 置顶小助手,方便下次查询\r\n1★【劵】无\r\n2★【返.佣】 0.29圆 \r\n3★【付款.价】24.9 圆\r\n \r\n 1 ¢HZv5WAboi0D¢(/:/ HU8866\r\
  297. n长按覆制本内容,打开TaoBao/\r\n-\r\n返佣是指商家的推广佣.金\r\n通过我回复的口令下単收货后,我
  298. 会微信红.苞返给你!!\r\n\r\n有疑问可回复“人工”咨询客服*/
  299. //🍑🔗上 水和肌精华水& CZ0 VWdCWC2gj97&,
  300. //6฿04ZDWzrwxjN)/ CA97
  301. //1😘 腹制这条(CZ00 iHvtWzrXa7O(:/
  302. //¥EC8DG4Zj0dhd8DOw¥MF6563 oIo0WzOF1Cp##X-PyVpHiPlyj1OP##
  303. //6.6₵vU2jWzIW3Qx₲/ CZ5224
  304. //$F56nWzIDSFZ$
  305. //0復製这条口令( CZ00 D0M4WzI0jFJ¢,📱咑開[Tao宝]就可下单:/
  306. //8fuzhi本条消息:¤ CZ3458 JSR1WzrPCBU¤,打开🍑♭ɑ◑下单/
  307. //5€Lz6SWzrkLDw¥:// CZ13
  308. //3₲Igq3Wzkc5np₳:// CZ15
  309. //9.9🎈【康师傅易拉罐6罐】口伶:6₰TnxKWzr0wff₪:// CZ69
  310. //4₲99Y0WzJdK6S₳:// CZ46
  311. //4fuzhi本条消息:¤ CZ0002 WVCSWzrk6Ix¤,打开🍑♭ɑ◑下单/
  312. bool anyMatch = false;
  313. foreach (string pattern in mergedArray)
  314. {
  315. if (Regex.IsMatch(text, pattern, RegexOptions.IgnoreCase))
  316. {
  317. anyMatch = true;
  318. }
  319. }
  320. return anyMatch;
  321. }
  322. public static bool MatchOtherInfo(string text, List<string> extended)
  323. {
  324. string[] base_patterns =
  325. [
  326. "[ďȌƯƔɪƝɖƟɏƖԂȎȗϓɫɧơȲǏđǫƲƳɨǹƊȮǚƴɬɲƿȖȳɳɗʮϔӢǙɦɒɎƥʘưΊƞǪȈʠΌǓϒίȠƠƱƗǸþŌŬÿĩŅÞÓũŸÎŎûįŇĎÖÙŷÏňÜÝÍñĎÒüŶľńĎ0ųŷÏŇdǒǔyí℡抖yí℡ÞŐûŷÌñ]{6}",
  327. @"(?:.+)极速版(?:口令|搜索)",
  328. @"##[a-zA-Z0-9]+##\[抖音(?:极速版)?(?:口令|搜索)\]",
  329. @"岽|亰|菄|京东|婛",
  330. "打开【剪映】",
  331. "weishi://|baiduhaokan://",
  332. "复制打开「UC浏览器」|UC瀏覽器",
  333. "番茄免费小说",
  334. @"\?chanTag=[^&\s]*口令",
  335. @"(https?://pan\.baidu\.com/s/[A-Za-z0-9?\-_=]+)",
  336. @"https?:\/\/meeting\.tencent\.com[^\s]*",
  337. @"#腾讯会议:(\d{3}-\d{3}-\d{3})"
  338. ];
  339. List<string> mergedArray = extended.Union(base_patterns).ToList();
  340. bool anyMatch = false;
  341. foreach (string pattern in mergedArray)
  342. {
  343. if (Regex.IsMatch(text, pattern, RegexOptions.IgnoreCase))
  344. {
  345. anyMatch = true;
  346. }
  347. }
  348. return anyMatch;
  349. }
  350. public static bool MatchMultiToken(string text, List<string> extended)
  351. {
  352. text = RemoveUrls(text);
  353. string special_symbols = $"\\$\\(\\)\\/\\#\\&\\<\\>฿¢¥¥$🗝₰₵₲¤₪₴€₤£₳《¢💰🔑🎵✔💲🔐📲";
  354. string[] base_patterns =
  355. [
  356. @"[!$¥%]+([a-zA-Z0-9]{16})[!$¥%]+",
  357. @"\^v(\d+#[a-zA-Z0-9]+)(?:\?.*)?\^",
  358. "##([a-zA-Z0-9\\-]+)##",
  359. $@"(.*?\d{{2}}\s[a-zA-Z]{{2}}\d{{4}}\s.*?[{special_symbols}]+[a-zA-Z0-9\s]+[{special_symbols}]).*",
  360. $@"[{special_symbols}]+\s*([a-zA-Z]{{1,2}}\d{{2,4}}\s[a-zA-Z0-9]{{11}}|[a-zA-Z0-9]{{11}}[a-zA-Z]{{1,2}}\d{{2,4}}\s|[a-zA-Z0-9]{{11}})\s*[{special_symbols}]+",
  361. ];
  362. // PAGE6:/^v130091#P2J6EDxN8p8?chanTag=d9dc522bdea27437514052ea50f6a787^
  363. List<string> mergedArray = extended.Union(base_patterns).ToList();
  364. int matchCount = 0;
  365. foreach (string pattern in mergedArray)
  366. {
  367. Match match = Regex.Match(text, pattern, RegexOptions.IgnoreCase);
  368. if (match.Success)
  369. {
  370. matchCount++;
  371. text = text.Replace(match.Groups[^1].Value, ""); // 移除匹配的部分文本
  372. }
  373. }
  374. return matchCount >= 2;
  375. }
  376. public static bool FilterRiskLink(string ip, string oaid, string content, out string reason)
  377. {
  378. reason = string.Empty;
  379. string itemId = ExtractItemId(content);
  380. if (string.IsNullOrEmpty(itemId)) return false;
  381. string cacheKey = $":cache:parse:{ip}_{oaid}_{itemId}";
  382. int flag = RedisHelper.Get<int>(cacheKey);
  383. if (flag > 0)
  384. {
  385. reason = $"口令用户";
  386. return true;
  387. }
  388. return false;
  389. }
  390. public static bool ShouldIgnoreRequest(string ip, string oaid, out string reason)
  391. {
  392. reason = string.Empty;
  393. try
  394. {
  395. // IP和流量控制
  396. var config = TkConfigCore.Get();
  397. string ignorePercentageCity = config.ignorePercentageCity;
  398. string? ipInfo = IP2RegionPlus.Search(ip);
  399. if (IgnoreRegionIncluded(ignorePercentageCity, ipInfo, out string regionInfo))
  400. {
  401. reason = $"地区控制:{regionInfo}";
  402. return true;
  403. }
  404. }
  405. catch (Exception ex)
  406. {
  407. reason = "配置异常";
  408. }
  409. return false;
  410. }
  411. public static bool FlowControlIgnoreRequest(out string reason)
  412. {
  413. reason = string.Empty;
  414. try
  415. {
  416. // IP和流量控制
  417. var config = TkConfigCore.Get();
  418. int ignorePercentage = config.ignorePercentage;
  419. if (ignorePercentage == 0) return false;
  420. var randomValue = (decimal)_random.Next(0, 100);
  421. bool result = randomValue <= ignorePercentage; // 如果生成的随机数小于忽略百分比,则返回 true,表示需要忽略请求
  422. if (result)
  423. {
  424. reason = "流量控制";
  425. return true;
  426. }
  427. }
  428. catch (Exception ex)
  429. {
  430. reason = $"配置异常";
  431. }
  432. return false;
  433. }
  434. public static TkDataDTO GetFormattedObject(string content, string ip, string oaid)
  435. {
  436. string shortLinkurl = GetTaobaoLink(content);
  437. string deeplink_url = GetDeeplink(shortLinkurl);
  438. return new TkDataDTO()
  439. {
  440. message = string.Empty,
  441. subCode = TkSubCodeEnum.Other,
  442. channel = TkChannelEnum.tb,
  443. accountName = string.Empty,
  444. success = false,
  445. content = content,
  446. link_type = LinkTypeEnum.unknown,
  447. ip = ip,
  448. oaid = oaid,
  449. couponAmount = 0,
  450. taoToken = string.Empty,
  451. elapsedTime = 0,
  452. itemName = "点击打开淘宝APP",
  453. shortLinkurl = shortLinkurl,
  454. deeplink_url = deeplink_url,
  455. create_time = DateTime.Now,
  456. end_point = _end_point,
  457. };
  458. }
  459. public static string OppoDecode(string content)
  460. {
  461. try
  462. {
  463. string secretKey = "BwFeIvOEDZy9MFGi0JLZBO4yEhR44DGV";
  464. byte[] keyBytes = Encoding.UTF8.GetBytes(secretKey);
  465. if (!content.Contains("%IV%")) return content;
  466. string cipherText = content.GetContentPart("", "%IV%");
  467. string ivText = content.GetContentPart("%IV%", "");
  468. byte[] cipherBytes = Convert.FromBase64String(cipherText);
  469. byte[] ivBytes = Convert.FromBase64String(ivText);
  470. using RijndaelManaged aes = new();
  471. aes.Key = keyBytes;
  472. aes.IV = ivBytes;
  473. aes.Mode = CipherMode.CFB;
  474. aes.Padding = PaddingMode.PKCS7;
  475. ICryptoTransform decryptor = aes.CreateDecryptor(aes.Key, aes.IV);
  476. var outBytes = decryptor.TransformFinalBlock(cipherBytes, 0, cipherBytes.Length);
  477. content = outBytes.ConvertToString();
  478. }
  479. catch (Exception e) { }
  480. return content;
  481. }
  482. }
  483. }