1.抖音某些口令无法解析

This commit is contained in:
老道 2022-12-29 22:29:57 +08:00
parent f40d3a1cfc
commit 5b93eed59f
1 changed files with 16 additions and 4 deletions

View File

@ -516,9 +516,21 @@ html = {html}");
{ {
var kl = reg.Groups[1].Value; var kl = reg.Groups[1].Value;
// product_id = KouLingAnalysis(kl); // product_id = KouLingAnalysis(kl);
product_id = DouyinApiV2.AnalysisCmdToGoodsUrl(kl, out promotion_id); var tmpId = DouyinApiV2.AnalysisCmdToGoodsUrl(kl, out promotion_id);
if (CheckIsGoodsId(tmpId))
{
product_id = tmpId;
promotion_id = GetPromotionId(product_id); promotion_id = GetPromotionId(product_id);
}
else
{
promotion_id = tmpId;
var info = FindGoodsInfo(promotion_id);
if (info != null)
{
product_id = info.data?.product_id ?? string.Empty;
}
}
IsResolved = false; IsResolved = false;
} }
} }