浏览代码

更新

master
huangjiajun 1年前
父节点
当前提交
1f25eedc56
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. +1
    -0
      tik_tok/md_tik_tok_goods.go
  2. +5
    -0
      tik_tok/svc_tik_tok_goods.go

+ 1
- 0
tik_tok/md_tik_tok_goods.go 查看文件

@@ -23,6 +23,7 @@ type TikTokGoods struct {
ServiceRatio string `json:"service_ratio"`
UpdateTime string `json:"update_time"`
ApplyId string `json:"apply_id"`
ActivityId string `json:"activity_id"`
}

type TikTokGoodsLm struct {


+ 5
- 0
tik_tok/svc_tik_tok_goods.go 查看文件

@@ -207,6 +207,11 @@ func GetKlGoodsNew(args map[string]string) TikTokGoods {
params := map[string]interface{}{"command": content}
send, err := Send(args["appkey"], args["appSecret"], "buyin.doukeCommandParseAndShare", params, args["acctoken"])
var goodsList = TikTokGoods{}
commandType := gjson.Get(send, "data.command_type").Int()
if commandType == 4 {
goodsList.ActivityId = zhios_third_party_utils.Int64ToStr(gjson.Get(send, "data.command_info.activity_info.material_id").Int())
return goodsList
}
product := gjson.Get(send, "data.command_info.product_info").String()
if err != nil || product == "" {
return goodsList


正在加载...
取消
保存