瀏覽代碼

test

master
huangjiajun 11 月之前
父節點
當前提交
a14ee59453
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. +6
    -3
      chain_transfer/svc/svc_turnchain.go

+ 6
- 3
chain_transfer/svc/svc_turnchain.go 查看文件

@@ -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


Loading…
取消
儲存