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