Skip to content

Commit 903196f

Browse files
committed
fix user count param
1 parent fabe3da commit 903196f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

user_api.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ func searchCidByAlias(appId, token, alias string) (*models.Response, error) {
114114

115115
// getUserCount 获取用户总量
116116
func getUserCount(appId, token string, Tag []*models.Tag) (*models.Response, error) {
117-
bodyByte, err := makeReqBody(Tag)
117+
pushTag := struct {
118+
Tag []*models.Tag `json:"tag"`
119+
}{}
120+
pushTag.Tag = Tag
121+
bodyByte, err := makeReqBody(pushTag)
118122
resp, err := RequestAPI("POST", appId+"/user/count", token, bodyByte)
119123
if err != nil {
120124
return nil, err

0 commit comments

Comments
 (0)