|
@@ -62,6 +62,10 @@ func TurnChainFeatures(eg *xorm.Engine, officialEg *xorm.Engine, tikTokBase map[ |
|
|
ex := strings.Split(goodsId, "cid") |
|
|
ex := strings.Split(goodsId, "cid") |
|
|
goodsId = ex[0] |
|
|
goodsId = ex[0] |
|
|
} |
|
|
} |
|
|
|
|
|
tikTokFirstGoods := db.SysCfgGetWithDb(eg, dbName, "tik_tok_first_goods") |
|
|
|
|
|
if tikTokFirstGoods == "1" { |
|
|
|
|
|
goodsId += "csjp" |
|
|
|
|
|
} |
|
|
tikTokBase["gid"] = goodsId |
|
|
tikTokBase["gid"] = goodsId |
|
|
urls, err = TikTokTurnChain(eg, officialEg, dbName, tikTokBase) |
|
|
urls, err = TikTokTurnChain(eg, officialEg, dbName, tikTokBase) |
|
|
case md.PVD_TB, md.PVD_TM: |
|
|
case md.PVD_TB, md.PVD_TM: |
|
@@ -993,6 +997,9 @@ func CheckTikTokWord(eg *xorm.Engine, officialEg *xorm.Engine, dbName, s string, |
|
|
args["gid"] = itemData.GoodsID |
|
|
args["gid"] = itemData.GoodsID |
|
|
args["master_id"] = dbName |
|
|
args["master_id"] = dbName |
|
|
args["provider"] = provider |
|
|
args["provider"] = provider |
|
|
|
|
|
if isCsjp == "1" { |
|
|
|
|
|
args["provider"] = "csjp" |
|
|
|
|
|
} |
|
|
args["uid"] = zhios_third_party_utils.IntToStr(user.Uid) |
|
|
args["uid"] = zhios_third_party_utils.IntToStr(user.Uid) |
|
|
convertUrl, err := ConvertUrl(eg, officialEg, args) |
|
|
convertUrl, err := ConvertUrl(eg, officialEg, args) |
|
|
if err == nil && convertUrl != nil { |
|
|
if err == nil && convertUrl != nil { |
|
|