From e44673fc058a71187a1b204e67af51a3c80fa2e9 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 30 Jul 2024 17:31:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chain_transfer/turn_chain.go | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/chain_transfer/turn_chain.go b/chain_transfer/turn_chain.go index 204501f..e2c8e27 100644 --- a/chain_transfer/turn_chain.go +++ b/chain_transfer/turn_chain.go @@ -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 == "" {