Browse Source

转链

master
huangjiajun 8 months ago
parent
commit
ae8a082285
2 changed files with 2 additions and 4 deletions
  1. +1
    -0
      chain_transfer/chain_transfer.go
  2. +1
    -4
      chain_transfer/svc/svc_turnchain.go

+ 1
- 0
chain_transfer/chain_transfer.go View File

@@ -87,6 +87,7 @@ func ChainTransfer(eg *xorm.Engine, officialEg *xorm.Engine, args map[string]str
case md.PVD_JDS:

case md.PVD_TIKTOK, md.PVD_KUAISHOU, "csjp":
args["provider"] = "csjp"
// 分享
if args["provider"] == md.PVD_TIKTOK || args["provider"] == "csjp" {
args["coupon_url"] = "https://haohuo.jinritemai.com/views/product/item2?id=" + args["gid"]


+ 1
- 4
chain_transfer/svc/svc_turnchain.go View File

@@ -62,10 +62,7 @@ func TurnChainFeatures(eg *xorm.Engine, officialEg *xorm.Engine, tikTokBase map[
ex := strings.Split(goodsId, "cid")
goodsId = ex[0]
}
tikTokFirstGoods := db.SysCfgGetWithDb(eg, dbName, "tik_tok_first_goods")
if tikTokFirstGoods == "1" {
goodsId += "csjp"
}
goodsId += "csjp"
tikTokBase["gid"] = goodsId
urls, err = TikTokTurnChain(eg, officialEg, dbName, tikTokBase)
case md.PVD_TB, md.PVD_TM:


Loading…
Cancel
Save