同步历史版本代码
This commit is contained in:
@@ -127,3 +127,26 @@ func (l *CryptoSaaSConfig) Unmarshal(data []byte) error {
|
||||
aux := (*Alias)(l)
|
||||
return json.Unmarshal(data, &aux)
|
||||
}
|
||||
|
||||
type AppleIAPConfig struct {
|
||||
ProductIds []string `json:"product_ids"`
|
||||
KeyID string `json:"key_id"`
|
||||
IssuerID string `json:"issuer_id"`
|
||||
PrivateKey string `json:"private_key"`
|
||||
Sandbox bool `json:"sandbox"`
|
||||
}
|
||||
|
||||
func (l *AppleIAPConfig) Marshal() ([]byte, error) {
|
||||
type Alias AppleIAPConfig
|
||||
return json.Marshal(&struct {
|
||||
*Alias
|
||||
}{
|
||||
Alias: (*Alias)(l),
|
||||
})
|
||||
}
|
||||
|
||||
func (l *AppleIAPConfig) Unmarshal(data []byte) error {
|
||||
type Alias AppleIAPConfig
|
||||
aux := (*Alias)(l)
|
||||
return json.Unmarshal(data, &aux)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user