fengniao ceshi
This commit is contained in:
@@ -13,14 +13,6 @@ func Init() {
|
||||
api.accessToken = token.BusinessDataObj.AccessToken
|
||||
}
|
||||
|
||||
func TestClient(t *testing.T) {
|
||||
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "5375691", "iCN2gIftF1Ia9nG7720nyn")
|
||||
token, err := api.GetAccessToken()
|
||||
api.accessToken = token.BusinessDataObj.AccessToken
|
||||
fmt.Println("token===", token.BusinessDataObj.AccessToken)
|
||||
fmt.Println("err=====", err)
|
||||
}
|
||||
|
||||
// 创建门店,
|
||||
func TestCreateStore(t *testing.T) {
|
||||
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "5375691", "cabrXQf9eFMVWVYg4hNlwu")
|
||||
@@ -91,11 +83,21 @@ func TestUpdataStore(t *testing.T) {
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
func TestClient(t *testing.T) {
|
||||
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "51658", "4W4hqacKND6NOct5gCyjbT")
|
||||
token, err := api.GetAccessToken()
|
||||
api.accessToken = token.BusinessDataObj.AccessToken
|
||||
fmt.Println("token===", token.BusinessDataObj.AccessToken)
|
||||
fmt.Println("err=====", err)
|
||||
}
|
||||
|
||||
// 查询单个门店
|
||||
func TestQueryOneStore(t *testing.T) {
|
||||
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "5375691", "iCN2gIftF1Ia9nG7720nyn")
|
||||
token, _ := api.GetAccessToken()
|
||||
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "51658", "4W4hqacKND6NOct5gCyjbT")
|
||||
token, err := api.GetAccessToken()
|
||||
fmt.Println("err! ========", err)
|
||||
api.accessToken = token.BusinessDataObj.AccessToken
|
||||
fmt.Println("err! ========accessToken", api.accessToken)
|
||||
data, err := api.GetStore("637910")
|
||||
fmt.Println(data)
|
||||
fmt.Println(err)
|
||||
|
||||
Reference in New Issue
Block a user