Skip to content

Commit

Permalink
update wechat group QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoogle-ink committed Jul 11, 2024
1 parent 23ed6c4 commit e6c62df
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
Binary file modified .github/wx_gopay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions apple/notification_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestDecodeSignedPayload(t *testing.T) {
xlog.Error(err)
return
}
xlog.Color(xlog.CyanBright).Infof("req: %+v", *req)
xlog.Infof("req: %+v", *req)
// decode signedPayload
payload, err := DecodeSignedPayload(req.SignedPayload)
if err != nil {
Expand All @@ -30,7 +30,7 @@ func TestDecodeSignedPayload(t *testing.T) {
xlog.Debugf("payload.Version: %s", payload.Version)
xlog.Debugf("payload.Data: %+v", payload.Data)
bs1, _ := json.Marshal(payload)
xlog.Color(xlog.RedBright).Info(string(bs1))
xlog.Info(string(bs1))
/*
{
"notificationType":"DID_RENEW",
Expand All @@ -56,7 +56,7 @@ func TestDecodeSignedPayload(t *testing.T) {
}
xlog.Debugf("data.renewalInfo: %+v", renewalInfo)
bs, _ := json.Marshal(renewalInfo)
xlog.Color(xlog.GreenBright).Info(string(bs))
xlog.Info(string(bs))
/*
{
"autoRenewProductId":"com.audaos.audarecorder.vip.m2",
Expand All @@ -83,7 +83,7 @@ func TestDecodeSignedPayload(t *testing.T) {
}
xlog.Debugf("data.transactionInfo: %+v", transactionInfo)
bs2, _ := json.Marshal(transactionInfo)
xlog.Color(xlog.YellowBright).Info(string(bs2))
xlog.Info(string(bs2))
/*
{
"appAccountToken":"",
Expand Down
8 changes: 4 additions & 4 deletions doc/apple.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ xlog.Debugf("payload.NotificationUUID: %s", payload.NotificationUUID)
xlog.Debugf("payload.NotificationVersion: %s", payload.NotificationVersion)
xlog.Debugf("payload.Data: %+v", payload.Data)
bs1, _ := json.Marshal(payload)
xlog.Color(xlog.RedBright).Info(string(bs1))
xlog.Info(string(bs1))
/*
{
"notificationType":"DID_RENEW",
Expand All @@ -113,7 +113,7 @@ if err != nil {
}
xlog.Debugf("data.renewalInfo: %+v", renewalInfo)
bs, _ := json.Marshal(renewalInfo)
xlog.Color(xlog.GreenBright).Info(string(bs))
xlog.Info(string(bs))
/*
{
"autoRenewProductId":"com.audaos.audarecorder.vip.m2",
Expand All @@ -138,7 +138,7 @@ if err != nil {
}
xlog.Debugf("data.transactionInfo: %+v", transactionInfo)
bs2, _ := json.Marshal(transactionInfo)
xlog.Color(xlog.YellowBright).Info(string(bs2))
xlog.Info(string(bs2))
/*
{
"appAccountToken":"",
Expand Down Expand Up @@ -178,4 +178,4 @@ xlog.Color(xlog.YellowBright).Info(string(bs2))

* `apple.VerifyReceipt()` => 验证支付凭证
* `apple.ExtractClaims()` => 解析signedPayload
* `apple.DecodeSignedPayload()` => 解析notification signedPayload
* `apple.DecodeSignedPayload()` => 解析notification signedPayload
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ require (
github.com/go-pay/util v0.0.2
github.com/go-pay/xlog v0.0.3
github.com/go-pay/xtime v0.0.2
golang.org/x/crypto v0.24.0
golang.org/x/crypto v0.25.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ github.com/go-pay/xtime v0.0.2 h1:7YR4/iuELsEHpJ6LUO0SVK80hQxDO9MLCfuVYIiTCRM=
github.com/go-pay/xtime v0.0.2/go.mod h1:W1yRbJaSt4CSBcdAtLBQ8xajiN/Pl5hquGczUcUE9xE=
golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI=
golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM=
golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=

0 comments on commit e6c62df

Please sign in to comment.