From 5229ac5dd7906652b5ba027adc267904ae1a616a Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 13 May 2024 15:40:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E8=81=94=E7=9B=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chain_transfer/turn_chain.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chain_transfer/turn_chain.go b/chain_transfer/turn_chain.go index 7bdfe04..ed989a1 100644 --- a/chain_transfer/turn_chain.go +++ b/chain_transfer/turn_chain.go @@ -64,7 +64,7 @@ func TurnChain(eg *xorm.Engine, officialEg *xorm.Engine, args map[string]string) reg1 := regexp.MustCompile(`¥.*?¥`) matched := reg1.FindAllStringSubmatch(reqCount, -1) isTikTok := "0" - if strings.Contains(reqCount, "dou音") || strings.Contains(reqCount, "buydouke") || (strings.Contains(reqCount, "抖音") || strings.Contains(reqCount, "douyin")) && strings.Contains(reqCount, "【") { + if strings.Contains(reqCount, "dou音") || strings.Contains(reqCount, "đΌȖƳίɳ") || strings.Contains(reqCount, "douyin") || strings.Contains(reqCount, "buydouke") || (strings.Contains(reqCount, "抖音") || strings.Contains(reqCount, "douyin")) && strings.Contains(reqCount, "【") { isTikTok = "1" } split := strings.Split(reqCount, "\n") @@ -92,7 +92,7 @@ func TurnChain(eg *xorm.Engine, officialEg *xorm.Engine, args map[string]string) PlatType = "has" } - if strings.Contains(v, "jd.") { + if strings.Contains(v, "jd.") || strings.Contains(v, "3.cn") { PlatType = "has" } @@ -148,7 +148,7 @@ func TurnChain(eg *xorm.Engine, officialEg *xorm.Engine, args map[string]string) } } } - if strings.Contains(v, "jd.") { + if strings.Contains(v, "jd.") || strings.Contains(v, "3.cn") { //只有链接带有.html才会剥离出商品id if strings.Contains(v, ".html") { var index int