|
@@ -419,7 +419,10 @@ func CommGetGoods(eg *xorm.Engine, officialEg *xorm.Engine, tmp map[string]strin |
|
|
if goods != nil { |
|
|
if goods != nil { |
|
|
//通过商品id转链 |
|
|
//通过商品id转链 |
|
|
tikTokBase := make(map[string]string) |
|
|
tikTokBase := make(map[string]string) |
|
|
tikTokBase["gid"] = goodsId |
|
|
|
|
|
|
|
|
tikTokBase["gid"] = goods.GoodID |
|
|
|
|
|
if goods.GoodID == "" { |
|
|
|
|
|
tikTokBase["gid"] = goodsId |
|
|
|
|
|
} |
|
|
tikTokBase["pvd"] = pvd |
|
|
tikTokBase["pvd"] = pvd |
|
|
user, _ := db.UserFindByID(eg, tmp["uid"]) |
|
|
user, _ := db.UserFindByID(eg, tmp["uid"]) |
|
|
for k1, v1 := range tmp { |
|
|
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 pddPid string |
|
|
var coustom 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 { |
|
|
if err != nil { |
|
|
return nil, "" |
|
|
return nil, "" |
|
|
} |
|
|
} |
|
@@ -1104,7 +1107,7 @@ func PDDByGoodsId(eg *xorm.Engine, officialEg *xorm.Engine, tmp map[string]strin |
|
|
coustom = one_user.AccPddSelfId |
|
|
coustom = one_user.AccPddSelfId |
|
|
} else { |
|
|
} else { |
|
|
pddPid = master.AccPddSelfId |
|
|
pddPid = master.AccPddSelfId |
|
|
coustom = zhios_third_party_utils.IntToStr(master.Uid) |
|
|
|
|
|
|
|
|
coustom = master.AccPddSelfId |
|
|
} |
|
|
} |
|
|
postData["pid"] = pddPid |
|
|
postData["pid"] = pddPid |
|
|
postData["custom_parameters"] = coustom |
|
|
postData["custom_parameters"] = coustom |
|
|