Skip to content

Commit

Permalink
fix user count param
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaling516 committed Dec 5, 2022
1 parent fabe3da commit 903196f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion user_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ func searchCidByAlias(appId, token, alias string) (*models.Response, error) {

// getUserCount 获取用户总量
func getUserCount(appId, token string, Tag []*models.Tag) (*models.Response, error) {
bodyByte, err := makeReqBody(Tag)
pushTag := struct {
Tag []*models.Tag `json:"tag"`
}{}
pushTag.Tag = Tag
bodyByte, err := makeReqBody(pushTag)
resp, err := RequestAPI("POST", appId+"/user/count", token, bodyByte)
if err != nil {
return nil, err
Expand Down

0 comments on commit 903196f

Please sign in to comment.