map对齐
Build docker and publish / build (20.15.1) (push) Successful in 7m7s

This commit is contained in:
2026-03-07 07:16:01 -08:00
parent a0ae7b1c8d
commit 1e14e2dbd9
5 changed files with 286 additions and 35 deletions
+3
View File
@@ -56,6 +56,9 @@ func ParseTransactionJWS(jws string) (*TransactionPayload, error) {
if v, ok := raw["productId"].(string); ok {
resp.ProductId = v
}
if v, ok := raw["type"].(string); ok {
resp.Type = v
}
if v, ok := raw["transactionId"].(string); ok {
resp.TransactionId = v
}
+8 -8
View File
@@ -3,12 +3,12 @@ package apple
import "time"
type TransactionPayload struct {
BundleId string `json:"bundleId"`
ProductId string `json:"productId"`
TransactionId string `json:"transactionId"`
OriginalTransactionId string `json:"originalTransactionId"`
PurchaseDate time.Time `json:"purchaseDate"`
RevocationDate *time.Time`json:"revocationDate"`
AppAccountToken string `json:"appAccountToken"`
BundleId string `json:"bundleId"`
ProductId string `json:"productId"`
Type string `json:"type"`
TransactionId string `json:"transactionId"`
OriginalTransactionId string `json:"originalTransactionId"`
PurchaseDate time.Time `json:"purchaseDate"`
RevocationDate *time.Time `json:"revocationDate"`
AppAccountToken string `json:"appAccountToken"`
}