DeeplinkParseCore.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. 
  2. using dodohold.core;
  3. using Microsoft.AspNetCore.Mvc;
  4. using Sayaka.Common;
  5. using System.Text.Json;
  6. using System.Text.RegularExpressions;
  7. using System.Web;
  8. namespace molilian.core
  9. {
  10. public partial class DeeplinkParseCore
  11. {
  12. private static string _end_point;
  13. private static readonly string[] separators = ["\r\n", "\n"];
  14. static DeeplinkParseCore()
  15. {
  16. _end_point = Environment.GetEnvironmentVariable("EndPoint");
  17. }
  18. public static DeeplinkParseDataDTO GetFormattedObject(string content, string channel, string ip = "", string oaid = "")
  19. {
  20. return new DeeplinkParseDataDTO()
  21. {
  22. message = string.Empty,
  23. success = false,
  24. content = content,
  25. ip = ip,
  26. oaid = oaid,
  27. elapsedTime = 0,
  28. create_time = DateTime.Now,
  29. end_point = _end_point,
  30. };
  31. }
  32. public static async Task<ActionResult> ParseAsync(string content, string channel, string ip, string oaid)
  33. {
  34. var result = GetFormattedObject(content, channel, ip, oaid);
  35. content = content.Trim();
  36. var rule = DeeplinkParseRuleCore.GetOne(channel);
  37. if (rule == null)
  38. {
  39. result.success = false;
  40. result.message = "转链失败";
  41. result.reason = "无效平台";
  42. _ = TkLogCore.ParseLogAsync(result);
  43. return new APIResult(new
  44. {
  45. result.success,
  46. result.message,
  47. result.reason,
  48. });
  49. }
  50. if (ShouldIgnoreRequest(rule.IgnorePercentageCity, ip, oaid, out string reason))
  51. {
  52. result.success = false;
  53. result.message = "放弃转链";
  54. result.reason = reason;
  55. _ = TkLogCore.ParseLogAsync(result);
  56. return new APIResult(new
  57. {
  58. result.success,
  59. result.message,
  60. result.reason,
  61. });
  62. }
  63. result.channel_id = rule.channel_id;
  64. result.channel_name = rule.channel_name;
  65. result = await GenerateDeeplink(content, rule, result);
  66. _ = TkLogCore.ParseLogAsync(result);
  67. return new APIResult(new
  68. {
  69. result.success,
  70. result.message,
  71. channel = result.channel_name,
  72. result.deeplink_url,
  73. result.itemName,
  74. });
  75. }
  76. public static bool ShouldIgnoreRequest(string ignorePercentageCity, string ip, string oaid, out string reason)
  77. {
  78. reason = string.Empty;
  79. try
  80. {
  81. // IP和流量控制
  82. string? ipInfo = IP2RegionPlus.Search(ip);
  83. if (!TestParseCore.InWhitelist(ip, oaid) && AlimamaPlus.IgnoreRegionIncluded(ignorePercentageCity, ipInfo, out string regionInfo))
  84. {
  85. reason = $"地区控制:{regionInfo}";
  86. return true;
  87. }
  88. }
  89. catch (Exception ex)
  90. {
  91. reason = "配置异常";
  92. }
  93. return false;
  94. }
  95. public static async Task<DeeplinkParseDataDTO> GenerateDeeplink(string text, DeeplinkParseRuleDTO config, DeeplinkParseDataDTO result)
  96. {
  97. try
  98. {
  99. var list = config.rules.Convert2Object<List<DeeplinkParseRule>>();
  100. foreach (var rule in list)
  101. {
  102. var e = await WorkEachRule(text, config, result, rule);
  103. if (e != null) return e;
  104. }
  105. }
  106. catch (Exception ex)
  107. {
  108. }
  109. result.success = false;
  110. return result;
  111. }
  112. private static async Task<DeeplinkParseDataDTO?> WorkEachRule(string text, DeeplinkParseRuleDTO config, DeeplinkParseDataDTO result, DeeplinkParseRule rule)
  113. {
  114. if (!rule.enable) return null;
  115. string content = text;
  116. if (!string.IsNullOrEmpty(rule.url_pattern))
  117. {
  118. var regex = new Regex(rule.url_pattern);
  119. var match = regex.Match(content);
  120. if (!match.Success) return null;
  121. content = match.Groups[1].Value;
  122. }
  123. string url = ToolParsePlus.GetLink(text);
  124. try
  125. {
  126. switch (rule.url_action)
  127. {
  128. case UrlAction.Redirect:
  129. {
  130. var response = await new WebClientUtility
  131. {
  132. Proxy = ProxyNodesCore.RandomOne(),
  133. UserAgent = ProviderFakeUserAgent.RandomMobile,
  134. AllowAutoRedirect = false
  135. }.RequestAsync(url);
  136. if (response.ResponseMessage != null)
  137. {
  138. content = response.ResponseMessage.Headers.Location.ToString();
  139. //content = content.UrlDecode();
  140. }
  141. if (string.IsNullOrEmpty(content)) return null;
  142. }
  143. break;
  144. case UrlAction.Body:
  145. case UrlAction.JsonBody:
  146. {
  147. var client = new WebClientUtility
  148. {
  149. Proxy = ProxyNodesCore.RandomOne(),
  150. UserAgent = ProviderFakeUserAgent.RandomMobile,
  151. AllowAutoRedirect = true
  152. };
  153. if (!string.IsNullOrEmpty(rule.post))
  154. {
  155. string postData = rule.post;
  156. // 使用现有占位符处理逻辑
  157. if (!string.IsNullOrEmpty(rule.url_pattern))
  158. {
  159. var urlRegex = new Regex(rule.url_pattern);
  160. var urlMatch = urlRegex.Match(text);
  161. if (urlMatch.Success)
  162. {
  163. for (var i = 1; i < urlMatch.Groups.Count; i++)
  164. {
  165. string val = urlMatch.Groups[i].Value;
  166. string tempPrompt = string.Empty;
  167. ReplaceProcessing(val, i, rule.replacements, ref postData, ref tempPrompt);
  168. }
  169. }
  170. }
  171. client.Post(postData);
  172. }
  173. //https://weitoutiao.zjurl.cn/tt_living/?app=news_article&module_name=Android_tt_url&room_id=MDUEDEq2rcgYaV8/SarVCgQTTv3vQwSt/yRnpWHHMzSd1LxjfgQQXTdEOrBDTfdJCzQ+vyO1aQ==&share_did=MS4wLjACAAAASvJER5nlmrwCRfsC2t661YpMGJbq2HtGQS31wppWCCm_j6e1qZ7w9bp94n9T6Ouq&share_token=99222dee-be68-4f79-af9e-c32eff162ea8&share_uid=MS4wLjABAAAA9PBhcsrMuvXb3-0VPXN47TT4TKDHqiZR-LCS4B2BodaRdd7OHm7rl1Xx3SxlLrbn&timestamp=1756194703&tt_from=copy_link&upstream_biz=client_share&utm_campaign=client_share&utm_medium=toutiao_android&utm_source=copy_link
  174. //https://weitoutiao.zjurl.cn/tt_living/?app=news_article&module_name=Android_tt_url&room_id=MDUEDEq2rcgYaV8%2FSarVCgQTTv3vQwSt%2FyRnpWHHMzSd1LxjfgQQXTdEOrBDTfdJCzQ%2BvyO1aQ%3D%3D&share_did=MS4wLjACAAAASvJER5nlmrwCRfsC2t661YpMGJbq2HtGQS31wppWCCm_j6e1qZ7w9bp94n9T6Ouq&share_token=99222dee-be68-4f79-af9e-c32eff162ea8&share_uid=MS4wLjABAAAA9PBhcsrMuvXb3-0VPXN47TT4TKDHqiZR-LCS4B2BodaRdd7OHm7rl1Xx3SxlLrbn&timestamp=1756194703&tt_from=copy_link&upstream_biz=client_share&utm_campaign=client_share&utm_medium=toutiao_android&utm_source=copy_link
  175. var response = await client.RequestAsync(url);
  176. content = response.Body();
  177. if (string.IsNullOrEmpty(content)) return null;
  178. }
  179. break;
  180. case UrlAction.None:
  181. //{
  182. // content = url;
  183. //}
  184. break;
  185. }
  186. }
  187. catch (Exception ex)
  188. {
  189. //Console.WriteLine($"{url}\t{rule.url_action}\t{ex.Message}");
  190. }
  191. if (!string.IsNullOrEmpty(rule.slice_pattern))
  192. {
  193. var regex = new Regex(rule.slice_pattern);
  194. var match = regex.Match(content);
  195. if (!match.Success) return null;
  196. content = match.Groups[1].Value;
  197. }
  198. if (rule.childs.Count > 0)
  199. {
  200. foreach (var sub_rule in rule.childs)
  201. {
  202. var e = await WorkEachRule(content, config, result, sub_rule);
  203. if (e != null) return e;
  204. }
  205. return null;
  206. }
  207. if (!string.IsNullOrEmpty(rule.body_pattern))
  208. {
  209. var regex = new Regex(rule.body_pattern);
  210. var match = regex.Match(content);
  211. if (!match.Success) return null;
  212. }
  213. var deeplink = rule.deeplink_template;
  214. var prompt_text = rule.prompt_text;
  215. try
  216. {
  217. var regex = new Regex(rule.pattern);
  218. var match = regex.Match(content);
  219. if (match.Success)
  220. {
  221. if (rule.resources.Count > 0)
  222. {
  223. foreach (var resource in rule.resources)
  224. {
  225. Dictionary<string, string> resResult = await ResourceProcessing(match, resource, rule.replacements);
  226. foreach (var e in resResult)
  227. {
  228. if (deeplink.Contains(e.Key))
  229. {
  230. deeplink = deeplink.Replace(e.Key, e.Value);
  231. }
  232. }
  233. }
  234. }
  235. if (match.Groups.Count > 1)
  236. {
  237. for (var i = 1; i < match.Groups.Count; i++)
  238. {
  239. string val = match.Groups[i].Value;
  240. switch (rule.plugin)
  241. {
  242. case "redu":
  243. string deeplink_url = await PluginDyParseAsync(text, val, result);
  244. if (!string.IsNullOrEmpty(deeplink_url))
  245. {
  246. result.itemName = prompt_text;
  247. result.deeplink_url = deeplink_url;
  248. result.success = true;
  249. return result;
  250. }
  251. break;
  252. }
  253. ReplaceProcessing(val, i, rule.replacements, ref deeplink, ref prompt_text);
  254. }
  255. if (rule.replace != null && rule.replace.Count > 0)
  256. {
  257. foreach (var r in rule.replace)
  258. {
  259. string key = r[0];
  260. if (string.IsNullOrEmpty(key)) continue;
  261. string val = string.Empty;
  262. if (r.Length > 1)
  263. {
  264. val = r[1];
  265. }
  266. deeplink = Regex.Replace(deeplink, key, val);
  267. }
  268. }
  269. deeplink = Regex.Replace(deeplink, @"\{\d+\}", string.Empty);
  270. prompt_text = Regex.Replace(prompt_text, @"\{\d+\}", string.Empty);
  271. if (!string.IsNullOrEmpty(deeplink))
  272. {
  273. result.deeplink_url = deeplink;
  274. result.itemName = prompt_text;
  275. result.success = true;
  276. return result;
  277. }
  278. }
  279. else
  280. {
  281. result.deeplink_url = deeplink;
  282. result.itemName = prompt_text;
  283. result.success = true;
  284. return result;
  285. }
  286. }
  287. }
  288. catch (Exception ex)
  289. {
  290. Console.WriteLine($"Error processing pattern '{rule.pattern}': {ex.Message}");
  291. }
  292. return null;
  293. }
  294. /// <summary>
  295. /// 占位符的处理
  296. /// </summary>
  297. /// <param name="word"></param>
  298. /// <param name="i"></param>
  299. /// <param name="deeplink"></param>
  300. /// <param name="prompt_text"></param>
  301. private static void ReplaceProcessing(string word, int i, List<ReplacementRule> replacements, ref string deeplink, ref string prompt_text)
  302. {
  303. if (deeplink.Contains("{url:"))
  304. {
  305. string encodedUrl = HttpUtility.UrlEncode(word);
  306. deeplink = deeplink.Replace($"{{url:{i - 1}}}", encodedUrl);
  307. }
  308. if (prompt_text.Contains("{url:"))
  309. {
  310. string encodedUrl = HttpUtility.UrlEncode(word);
  311. prompt_text = prompt_text.Replace($"{{url:{i - 1}}}", encodedUrl);
  312. }
  313. if (deeplink.Contains("{decode:"))
  314. {
  315. string encodedUrl = HttpUtility.UrlDecode(word);
  316. deeplink = deeplink.Replace($"{{decode:{i - 1}}}", encodedUrl);
  317. }
  318. if (prompt_text.Contains("{decode:"))
  319. {
  320. string encodedUrl = HttpUtility.UrlDecode(word);
  321. prompt_text = prompt_text.Replace($"{{decode:{i - 1}}}", encodedUrl);
  322. }
  323. //两次url编码
  324. if (deeplink.Contains("{url2:"))
  325. {
  326. string encodedUrl = HttpUtility.UrlEncode(word);
  327. encodedUrl = HttpUtility.UrlEncode(encodedUrl);
  328. deeplink = deeplink.Replace($"{{url2:{i - 1}}}", encodedUrl);
  329. }
  330. if (prompt_text.Contains("{url2:"))
  331. {
  332. string encodedUrl = HttpUtility.UrlEncode(word);
  333. encodedUrl = HttpUtility.UrlEncode(encodedUrl);
  334. prompt_text = prompt_text.Replace($"{{url2:{i - 1}}}", encodedUrl);
  335. }
  336. //三次url解码
  337. if (deeplink.Contains("{url3:"))
  338. {
  339. string encodedUrl = HttpUtility.UrlEncode(word);
  340. encodedUrl = HttpUtility.UrlEncode(encodedUrl);
  341. deeplink = deeplink.Replace($"{{url3:{i - 1}}}", encodedUrl);
  342. }
  343. if (prompt_text.Contains("{url3:"))
  344. {
  345. string encodedUrl = HttpUtility.UrlEncode(word);
  346. encodedUrl = HttpUtility.UrlEncode(encodedUrl);
  347. prompt_text = prompt_text.Replace($"{{url3:{i - 1}}}", encodedUrl);
  348. }
  349. //atob
  350. if (deeplink.Contains("{atob:"))
  351. {
  352. string encodedUrl = HttpUtility.UrlDecode(word);
  353. deeplink = deeplink.Replace($"{{atob:{i - 1}}}", encodedUrl.FromBase64());
  354. }
  355. if (prompt_text.Contains("{atob:"))
  356. {
  357. string encodedUrl = HttpUtility.UrlDecode(word);
  358. prompt_text = prompt_text.Replace($"{{atob:{i - 1}}}", encodedUrl.FromBase64());
  359. }
  360. //btoa
  361. if (deeplink.Contains("{btoa:"))
  362. {
  363. string encodedUrl = HttpUtility.UrlEncode(word);
  364. deeplink = deeplink.Replace($"{{btoa:{i - 1}}}", word.ToBase64());
  365. }
  366. if (prompt_text.Contains("{btoa:"))
  367. {
  368. string encodedUrl = HttpUtility.UrlEncode(word);
  369. prompt_text = prompt_text.Replace($"{{btoa:{i - 1}}}", word.ToBase64());
  370. }
  371. deeplink = deeplink.Replace($"{{{i - 1}}}", word);
  372. prompt_text = prompt_text.Replace($"{{{i - 1}}}", word);
  373. // 新增 <<>> 格式处理
  374. if (replacements != null)
  375. {
  376. deeplink = Regex.Replace(deeplink, @"<<(\w+):([^>]+)>>", match =>
  377. {
  378. var ruleName = match.Groups[1].Value;
  379. var value = match.Groups[2].Value;
  380. // 查找并应用替换规则
  381. var rule = replacements.FirstOrDefault(r => r.Name == ruleName);
  382. if (rule != null)
  383. {
  384. foreach (var r in rule.Rules)
  385. {
  386. if (r.When.Evaluate(value))
  387. {
  388. return r.Then;
  389. }
  390. }
  391. return rule.Default;
  392. }
  393. return value;
  394. });
  395. prompt_text = Regex.Replace(prompt_text, @"<<(\w+):([^>]+)>>", match =>
  396. {
  397. var ruleName = match.Groups[1].Value;
  398. var value = match.Groups[2].Value;
  399. // 查找并应用替换规则
  400. var rule = replacements.FirstOrDefault(r => r.Name == ruleName);
  401. if (rule != null)
  402. {
  403. foreach (var r in rule.Rules)
  404. {
  405. if (r.When.Evaluate(value))
  406. {
  407. return r.Then;
  408. }
  409. }
  410. return rule.Default;
  411. }
  412. return value;
  413. });
  414. }
  415. // 最后处理普通的索引替换
  416. deeplink = deeplink.Replace($"{{{i - 1}}}", word);
  417. prompt_text = prompt_text.Replace($"{{{i - 1}}}", word);
  418. }
  419. private static async Task<Dictionary<string, string>> ResourceProcessing(Match baseMatch, DeeplinkResources resource, List<ReplacementRule> replacements)
  420. {
  421. Dictionary<string, string> result = new Dictionary<string, string>();
  422. string url = resource.url_pattern;
  423. string prompt_text = string.Empty;
  424. for (var i = 1; i < baseMatch.Groups.Count; i++)
  425. {
  426. string val = baseMatch.Groups[i].Value;
  427. ReplaceProcessing(val, i, replacements, ref url, ref prompt_text);
  428. }
  429. string content = string.Empty;
  430. try
  431. {
  432. switch (resource.url_action)
  433. {
  434. case UrlAction.Redirect:
  435. {
  436. var response = await new WebClientUtility
  437. {
  438. Proxy = ProxyNodesCore.RandomOne(),
  439. UserAgent = ProviderFakeUserAgent.RandomMobile,
  440. AllowAutoRedirect = false
  441. }.RequestAsync(url);
  442. if (response.ResponseMessage != null)
  443. {
  444. content = response.ResponseMessage.Headers.Location.ToString();
  445. content = content.UrlDecode();
  446. }
  447. }
  448. break;
  449. case UrlAction.Body:
  450. case UrlAction.JsonBody:
  451. {
  452. //var response = await new WebClientUtility
  453. //{
  454. // Proxy = ProxyNodesCore.RandomOne(),
  455. // UserAgent = ProviderFakeUserAgent.RandomMobile,
  456. // AllowAutoRedirect = true
  457. //}.RequestAsync(url);
  458. var client = new WebClientUtility
  459. {
  460. Proxy = ProxyNodesCore.RandomOne(),
  461. UserAgent = ProviderFakeUserAgent.RandomMobile,
  462. AllowAutoRedirect = true
  463. };
  464. if (!string.IsNullOrEmpty(resource.post))
  465. {
  466. string postData = resource.post;
  467. // 处理POST数据中的占位符
  468. for (var i = 1; i < baseMatch.Groups.Count; i++)
  469. {
  470. string val = baseMatch.Groups[i].Value;
  471. ReplaceProcessing(val, i, replacements, ref postData, ref prompt_text);
  472. }
  473. client.Post(postData);
  474. }
  475. var response = await client.RequestAsync(url);
  476. content = response.Body();
  477. }
  478. break;
  479. case UrlAction.None:
  480. //{
  481. // content = url;
  482. //}
  483. break;
  484. }
  485. }
  486. catch (Exception ex)
  487. {
  488. //Console.WriteLine($"{url}\t{rule.url_action}\t{ex.Message}");
  489. }
  490. if (string.IsNullOrEmpty(content)) { return result; }
  491. try
  492. {
  493. JsonElement root = default;
  494. if (UrlAction.JsonBody.Equals(resource.url_action))
  495. {
  496. root = content.Convert2JsonElement();
  497. }
  498. for (int i = 0; i < resource.pattern.Count; i++)
  499. {
  500. string val = string.Empty;
  501. if (UrlAction.JsonBody.Equals(resource.url_action))
  502. {
  503. val = root.PathRead(resource.pattern[i], string.Empty);
  504. }
  505. else
  506. {
  507. var regex = new Regex(resource.pattern[i]);
  508. var match = regex.Match(content);
  509. if (match.Success)
  510. {
  511. val = match.Groups[1].Value;
  512. }
  513. }
  514. string key = $"{{{i}@{resource.name}}}";
  515. result.Add(key, val);
  516. }
  517. }
  518. catch (Exception ex) { }
  519. return result;
  520. }
  521. public static async Task<string> PluginDyParseAsync(string content, string matchText, DeeplinkParseDataDTO deeplinkResult, CancellationToken cancellationToken = default)
  522. {
  523. string ip = deeplinkResult.ip;
  524. string oaid = deeplinkResult.oaid;
  525. var result = DyUnionPlus.GetFormattedObject(content, ip, oaid);
  526. result.create_time = deeplinkResult.create_time;
  527. result.rawContent = content;
  528. bool IfExceptional = false;
  529. try
  530. {
  531. if (DyUnionPlus.ShouldIgnoreRequest(ip, oaid, out string reason))
  532. {
  533. result.success = false;
  534. result.message = "放弃转链";
  535. result.reason = reason;
  536. _ = TkLogCore.ParseLogAsync(result);
  537. return null;
  538. }
  539. var account = ReduPoolCore.GetOne();
  540. if (account == null)
  541. {
  542. result.success = false;
  543. result.message = "放弃转链";
  544. result.reason = "没有匹配账号";
  545. _ = TkLogCore.ParseLogAsync(result);
  546. return null;
  547. }
  548. var now = DateTime.Now;
  549. var ts2 = now - result.create_time;
  550. result.elapsedTime2 = (int)ts2.TotalMilliseconds;
  551. result = await DyUnionPlus.DyParseAsync(account, matchText, result, cancellationToken);
  552. switch (oaid)
  553. {
  554. case "3B191CFA4C6B48F9BA459E915B57743BEC7D424979CC9C51BCAD0C245B1C7BA2":
  555. case "6D5D56F3073844F2912B4552CEDF9E3BEC7D424979CC9C51C5461106F1915660":
  556. case "4CA55979100C4B5BAAA2AF4ABE15C360602e915cedae5786405419ccc9f4e3f8":
  557. break;
  558. default:
  559. result.deeplink_url = result.deeplink_url.Replace("snssdk1128://", "snssdk561124://");
  560. break;
  561. }
  562. var ts3 = DateTime.Now - now;
  563. result.elapsedTime3 = (int)ts3.TotalMilliseconds;
  564. }
  565. catch (Exception ex)
  566. {
  567. if (ex.Message.Contains("was canceled"))
  568. {
  569. result.success = false;
  570. result.message = "放弃转链";
  571. result.reason = "请求超时";
  572. }
  573. else
  574. {
  575. IfExceptional = true;
  576. _ = new LoggerLibrary("unionParse", "dy_error")
  577. .Info(ip, oaid)
  578. .Info(content)
  579. .Info(ex.Message, ex.StackTrace)
  580. .SaveAsync();
  581. NotifyCore.Notify(new NifyMessage
  582. {
  583. message = $"【转链异常DY】\n{content}\n\n{ex.Message}\n{ex.StackTrace}",
  584. priority = NifyMessagePriority.high,
  585. tags = ["red_circle"]
  586. });
  587. result.success = false;
  588. result.message = "内部错误";
  589. result.reason = "转链接口异常";
  590. }
  591. }
  592. _ = TkLogCore.ParseLogAsync(result);
  593. return result.deeplink_url;
  594. }
  595. }
  596. }