Skip to content

Commit

Permalink
Merge pull request #460 from ziyuandaili/3.2.1
Browse files Browse the repository at this point in the history
更新发布文章API接口PublishId参数类型
  • Loading branch information
Matrix-X authored Mar 28, 2024
2 parents 73cdbe8 + 993d255 commit 2f8e873
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/officialAccount/publish/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (comp *Client) PublishSubmit(ctx context.Context, mediaID string) (*respons

// 发布状态轮询接口
// https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_status.html
func (comp *Client) PublishGet(ctx context.Context, publishID string) (*response.ResponsePublishGet, error) {
func (comp *Client) PublishGet(ctx context.Context, publishID uint64) (*response.ResponsePublishGet, error) {
result := &response.ResponsePublishGet{}

_, err := comp.BaseClient.HttpPostJson(ctx, "cgi-bin/freepublish/get", &object.HashMap{
Expand Down
4 changes: 2 additions & 2 deletions src/officialAccount/publish/response/responsePublish.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response"
type ResponsePublishSubmit struct {
response.ResponseOfficialAccount

PublishId string `json:"publish_id"`
PublishId uint64 `json:"publish_id"`
}

type ArticleItem struct {
Expand All @@ -21,7 +21,7 @@ type ArticleDetail struct {
type ResponsePublishGet struct {
response.ResponseOfficialAccount

PublishId string `json:"publish_id"`
PublishId uint64 `json:"publish_id"`
PublishStatus int `json:"publish_status"`
ArticleId interface{} `json:"article_id"`
ArticleDetail *ArticleDetail `json:"article_detail"`
Expand Down

0 comments on commit 2f8e873

Please sign in to comment.