Bladeren bron

test

master
huangjiajun 11 maanden geleden
bovenliggende
commit
a14ee59453
1 gewijzigde bestanden met toevoegingen van 6 en 3 verwijderingen
  1. +6
    -3
      chain_transfer/svc/svc_turnchain.go

+ 6
- 3
chain_transfer/svc/svc_turnchain.go Bestand weergeven

@@ -419,7 +419,10 @@ func CommGetGoods(eg *xorm.Engine, officialEg *xorm.Engine, tmp map[string]strin
if goods != nil {
//通过商品id转链
tikTokBase := make(map[string]string)
tikTokBase["gid"] = goodsId
tikTokBase["gid"] = goods.GoodID
if goods.GoodID == "" {
tikTokBase["gid"] = goodsId
}
tikTokBase["pvd"] = pvd
user, _ := db.UserFindByID(eg, tmp["uid"])
for k1, v1 := range tmp {
@@ -1094,7 +1097,7 @@ func PDDByGoodsId(eg *xorm.Engine, officialEg *xorm.Engine, tmp map[string]strin
//换为用搜索接口查商品
var pddPid string
var coustom string
master, err := db.UserProfileFindByID(eg, 1)
master, err := db.UserProfileFindByID(eg, zhios_third_party_utils.StrToInt(tmp["uid"]))
if err != nil {
return nil, ""
}
@@ -1104,7 +1107,7 @@ func PDDByGoodsId(eg *xorm.Engine, officialEg *xorm.Engine, tmp map[string]strin
coustom = one_user.AccPddSelfId
} else {
pddPid = master.AccPddSelfId
coustom = zhios_third_party_utils.IntToStr(master.Uid)
coustom = master.AccPddSelfId
}
postData["pid"] = pddPid
postData["custom_parameters"] = coustom


Laden…
Annuleren
Opslaan