Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoogle-ink committed Mar 2, 2023
1 parent 5088c70 commit bf8bf34
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion alipay/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ func (a *Client) doAliPay(ctx context.Context, bm gopay.BodyMap, method string,
}
// 处理公共参数
param, err := a.pubParamsHandle(bm, method, bizContent, authToken...)

if err != nil {
return nil, err
}
switch method {
case "alipay.trade.app.pay", "alipay.fund.auth.order.app.freeze":
return []byte(param), nil
Expand Down
3 changes: 3 additions & 0 deletions paypal/payout.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func (c Client) CancelUnclaimedPayoutItem(ctx context.Context, payoutItemId stri
}
url := fmt.Sprintf(cancelUnclaimedPayoutItem, payoutItemId)
res, bs, err := c.doPayPalPost(ctx, nil, url)
if err != nil {
return nil, err
}
ppRsp = &CancelUnclaimedPayoutItemRsp{Code: Success}
ppRsp.Response = new(PayoutItemDetail)
if err = json.Unmarshal(bs, ppRsp.Response); err != nil {
Expand Down
4 changes: 1 addition & 3 deletions wechat/v3/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ func (c *ClientV3) authorization(method, path string, bm gopay.BodyMap) (string,
if bm != nil {
jb = bm.JsonBody()
}
if strings.HasSuffix(path, "?") {
path = path[:len(path)-1]
}
path = strings.TrimSuffix(path, "?")
ts := util.Int642String(timestamp)
_str := method + "\n" + path + "\n" + ts + "\n" + nonceStr + "\n" + jb + "\n"
if c.DebugSwitch == gopay.DebugOn {
Expand Down

0 comments on commit bf8bf34

Please sign in to comment.