|
|
@@ -1147,18 +1147,9 @@ func PDDByGoodsId(eg *xorm.Engine, officialEg *xorm.Engine, tmp map[string]strin |
|
|
|
//换为用搜索接口查商品 |
|
|
|
var pddPid string |
|
|
|
var coustom string |
|
|
|
master, err := db.UserProfileFindByID(eg, zhios_third_party_utils.StrToInt(tmp["uid"])) |
|
|
|
if err != nil { |
|
|
|
return nil, "" |
|
|
|
} |
|
|
|
if master == nil || master.AccPddBind != 1 { |
|
|
|
one_user, _ := db.UserProfileFindByID(eg, 0) |
|
|
|
pddPid = one_user.AccPddSelfId |
|
|
|
coustom = one_user.AccPddSelfId |
|
|
|
} else { |
|
|
|
pddPid = master.AccPddSelfId |
|
|
|
coustom = master.AccPddSelfId |
|
|
|
} |
|
|
|
master, err := db.UserProfileFindByID(eg, 0) |
|
|
|
pddPid = master.AccPddSelfId |
|
|
|
coustom = master.AccPddSelfId |
|
|
|
postData["pid"] = pddPid |
|
|
|
postData["custom_parameters"] = coustom |
|
|
|
pddData, err := pdd.NewZhiMengPDDSDK(). |
|
|
|