This commit is contained in:
邹宗楠
2026-01-07 15:20:19 +08:00
parent 7f830d030e
commit abaf8aa75e
3 changed files with 19 additions and 12 deletions

View File

@@ -25,6 +25,13 @@ func init() {
api.accessToken = "0d572b0b-9742-4e2b-9d00-5a6609867dd3"
}
func TestGetAccessToken(t *testing.T) {
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "51658", "o86wptdoBZfFLHLbGt7xQH")
token, err := api.GetAccessToken()
globals.SugarLogger.Debug("err: %s", utils.Format4Output(err, false))
globals.SugarLogger.Debug("token: %s", utils.Format4Output(token, false))
}
// 查询单个门店
func TestQueryOneStore(t *testing.T) {
api = New("6705486294797503379", "c1e6c280-e618-4103-9d0a-673bc54fb22e", "51658", "")