parse.cs 22 KB

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