Pārlūkot izejas kodu

京东联盟

master
huangjiajun pirms 7 mēnešiem
vecāks
revīzija
5229ac5dd7
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -3
      chain_transfer/turn_chain.go

+ 3
- 3
chain_transfer/turn_chain.go Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt