|
@@ -28,12 +28,12 @@ func Keyword(args map[string]string) tik_tok.TikTokGoods { |
|
|
fmt.Println(send) |
|
|
fmt.Println(send) |
|
|
fmt.Println(err) |
|
|
fmt.Println(err) |
|
|
var goodsList = tik_tok.TikTokGoods{} |
|
|
var goodsList = tik_tok.TikTokGoods{} |
|
|
ActivityId := gjson.Get(send, "data.command_info.activity_info.material_id").Int() |
|
|
|
|
|
|
|
|
ActivityId := gjson.Get(send, "data.activity_info.material_id").Int() |
|
|
if ActivityId > 0 { |
|
|
if ActivityId > 0 { |
|
|
goodsList.ActivityId = zhios_third_party_utils.Int64ToStr(gjson.Get(send, "data.command_info.activity_info.material_id").Int()) |
|
|
goodsList.ActivityId = zhios_third_party_utils.Int64ToStr(gjson.Get(send, "data.command_info.activity_info.material_id").Int()) |
|
|
return goodsList |
|
|
return goodsList |
|
|
} |
|
|
} |
|
|
product := gjson.Get(send, "data.command_info.product_info").String() |
|
|
|
|
|
|
|
|
product := gjson.Get(send, "data.product_info").String() |
|
|
if err != nil || product == "" { |
|
|
if err != nil || product == "" { |
|
|
return goodsList |
|
|
return goodsList |
|
|
} |
|
|
} |
|
|