第三方api接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 月之前
11 月之前
10 月之前
11 月之前
10 月之前
11 月之前
10 月之前
10 月之前
9 月之前
10 月之前
11 月之前
1234567891011121314151617181920212223242526272829
  1. package tik_tok
  2. import (
  3. "fmt"
  4. "github.com/syyongx/php2go"
  5. "github.com/tidwall/gjson"
  6. )
  7. func CsjpActivity(args map[string]string) (map[string]string, string) {
  8. params := map[string]interface{}{
  9. "external_info": args["external_info"],
  10. "material_id": args["material_id"],
  11. }
  12. if args["extra_params"] != "" {
  13. params["extra_params"] = args["extra_params"]
  14. }
  15. send, err := CsjpSend(args["app_id"], args["app_secret"], "aggregate/h5", params)
  16. var data = map[string]string{}
  17. if err != nil {
  18. fmt.Println("抖音信息=====", send)
  19. return data, err.Error()
  20. }
  21. data["deeplink"] = gjson.Get(send, "data.deeplink").String()
  22. data["content"] = php2go.Base64Encode(gjson.Get(send, "data.share_command").String())
  23. data["qr_code"] = gjson.Get(send, "data.qrcode.url").String()
  24. return data, ""
  25. }