Skip to content

Commit

Permalink
fix(dataCube): Method exposure
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix-X committed Jul 4, 2023
1 parent 38ad99c commit c895500
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/officialAccount/dataCube/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (comp *Client) MemberCardSummary(ctx context.Context, from string, to strin

// 拉取单张会员卡数据接口.
// https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Managing_Coupons_Vouchers_and_Cards.html
func (comp *Client) memberCardSummaryByID(ctx context.Context, from string, to string, cardID string) (*response.ResponseDataCubeMemberCardSummaryByID, error) {
func (comp *Client) MemberCardSummaryByID(ctx context.Context, from string, to string, cardID string) (*response.ResponseDataCubeMemberCardSummaryByID, error) {

result := &response.ResponseDataCubeMemberCardSummaryByID{}

Expand Down
5 changes: 4 additions & 1 deletion src/payment/jssdk/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"github.com/ArtisanCloud/PowerLibs/v3/object"
"github.com/ArtisanCloud/PowerWeChat/v3/src/basicService/jssdk"
kernel2 "github.com/ArtisanCloud/PowerWeChat/v3/src/kernel"
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/power"
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/support"
"net/http"
"net/url"
"time"
Expand Down Expand Up @@ -116,7 +118,8 @@ func (comp *Client) AppConfig(prepayID string) (*object.StringMap, error) {
"package": "Sign=WXPay",
}

//(*params)["sign"] = support.GenerateSign(params, config.GetString("key", ""), "RSA")
parSign, _ := power.StringMapToPower(params)
(*params)["sign"] = support.GenerateSignHmacSHA256(parSign, config.GetString("key", ""))

return params, nil
}
Expand Down

0 comments on commit c895500

Please sign in to comment.