1
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
// "authority_id": ""
|
||||
//}`
|
||||
|
||||
var token = `{"access_token":"c2e78f4f-fb23-4729-b9b1-8330209df50b","expires_in":1679259342,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"83548fb9-d9ea-4665-bd8c-4dbb949338de","authority_id":""}`
|
||||
var token = `{"access_token":"2edc427e-9ab8-430b-a502-6802f1dee387","expires_in":1679861437,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"dda56ad5-521b-4b87-9d74-bd6df13df1aa","authority_id":""}`
|
||||
|
||||
//var token = `{"access_token":"e3173e9f-266f-4d87-88e7-e7cd837bc9d9","expires_in":1672882632,"scope":"SCOPE","shop_id":68023619,"shop_name":"京西到家","refresh_token":"5070aae2-493f-46bd-b5d6-6ea0cd64729f","authority_id":""}`
|
||||
|
||||
|
||||
@@ -7,10 +7,22 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestN2ame(t *testing.T) {
|
||||
polay := make(map[string]interface{}, 0)
|
||||
polay["a"] = ""
|
||||
polay["b"] = "1"
|
||||
|
||||
fmt.Println(polay["a"].(string))
|
||||
fmt.Println(polay["b"].(string))
|
||||
fmt.Println(polay["c"].(string))
|
||||
}
|
||||
|
||||
func TestGetRecommendCategory(t *testing.T) {
|
||||
img, _, err := GetTiktokImgListTest(a, "668707", "", "", "http://img20.360buyimg.com/vc/jfs/t1/8979/39/8591/236012/5c0e45f3E1537c120/a66aafc95cf66977.jpg", "http://img20.360buyimg.com/vc/jfs/t1/23027/3/955/82830/5c0e45f3E0855eeae/ae65ee9555a29579.jpg")
|
||||
fmt.Println(err)
|
||||
a.GetRecommendCategory(strings.Split(img, "|"))
|
||||
data, err := a.GetRecommendCategory(strings.Split(img, "|"))
|
||||
fmt.Println(data)
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
// GetTiktokImgList 获取抖音图片链接
|
||||
|
||||
Reference in New Issue
Block a user