Browse Source

转链

master
huangjiajun 4 months ago
parent
commit
e44673fc05
1 changed files with 2 additions and 15 deletions
  1. +2
    -15
      chain_transfer/turn_chain.go

+ 2
- 15
chain_transfer/turn_chain.go View File

@@ -326,21 +326,8 @@ func TurnChain(eg *xorm.Engine, officialEg, zhimengEg *xorm.Engine, args map[str
newV = strings.ReplaceAll(newV, v1, "")
}
}
split := regexp.MustCompile("[a-zA-Z0-9]{9,14}").FindAllString(v, -1)
//split_letter := regexp.MustCompile("[a-zA-Z]{8,15}").FindAllString(reqCount, -1)
if split != nil && ((zhios_third_party_utils.IsChineseChar(v) && strings.Contains(v, "http")) || strings.Contains(v, "http") == false) {
var is_tkl = 0
for k1, v1 := range split {
if k1 == 0 {
is_tkl = 1
tklWord = v1
}
}
if is_tkl == 1 {
PlatType = "tkl"
}
}
if goodsId == "" && (zhios_third_party_utils.IsAllChinese(newV) == false && (PlatType == "taobao" || PlatType == "") || PlatType == "tkl") {

if goodsId == "" && (zhios_third_party_utils.IsAllChinese(newV) == false && (PlatType == "taobao" || PlatType == "")) {

pvd, goodsId, word, _ := svc.FindTaobaoWord(eg, officialEg, zhimengEg, args, v, user)
if goodsId == "" && pvd == "" {


Loading…
Cancel
Save