Skip to content

Commit

Permalink
当 app_auth_token 参数的值为空字符串的时候,将其忽略
Browse files Browse the repository at this point in the history
  • Loading branch information
smartwalle committed Apr 26, 2020
1 parent 31701f4 commit dbf8ba4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alipay.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var (

const (
kAliPayPublicKeySN = "alipay-public-key"
kAppAuthToken = "app_auth_token"
)

type Client struct {
Expand Down Expand Up @@ -231,6 +232,9 @@ func (this *Client) URLValues(param Param) (value url.Values, err error) {
var ps = param.Params()
if ps != nil {
for key, value := range ps {
if key == kAppAuthToken && value == "" {
continue
}
p.Add(key, value)
}
}
Expand Down

0 comments on commit dbf8ba4

Please sign in to comment.