|
|
@@ -1,6 +1,7 @@ |
|
|
|
package tik_tok |
|
|
|
|
|
|
|
import ( |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/md" |
|
|
|
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" |
|
|
|
"encoding/json" |
|
|
|
"fmt" |
|
|
@@ -109,6 +110,16 @@ func GetDetail(args map[string]string) TikTokGoods { |
|
|
|
// |
|
|
|
return goodsList |
|
|
|
} |
|
|
|
func GetDetailSku(args map[string]string, id int64) md.SpecsData { |
|
|
|
params := map[string]interface{}{"product_id": id} |
|
|
|
send, err := Send(args["appkey"], args["appSecret"], "buyin.productSkus", params, args["acctoken"]) |
|
|
|
var goodsList = md.SpecsData{} |
|
|
|
product := gjson.Get(send, "data.data").String() |
|
|
|
if err != nil || product == "" { |
|
|
|
return goodsList |
|
|
|
} |
|
|
|
return goodsList |
|
|
|
} |
|
|
|
|
|
|
|
//详情 |
|
|
|
func GetDetailMore(args map[string]string) *[]TikTokGoods { |
|
|
|