mirror of
https://github.com/majd/ipatool
synced 2026-11-29 02:37:52 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5291ba16b | ||
|
|
37af8f8468 |
No files matched your search
@@ -30,6 +30,7 @@ func downloadCmd() *cobra.Command {
|
||||
|
||||
var lastErr error
|
||||
var acc appstore.Account
|
||||
var purchased bool = false
|
||||
|
||||
return retry.Do(func() error {
|
||||
infoResult, err := dependencies.AppStore.AccountInfo()
|
||||
@@ -63,6 +64,10 @@ func downloadCmd() *cobra.Command {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
purchased = true
|
||||
dependencies.Logger.Verbose().
|
||||
Bool("success", true).
|
||||
Msg("purchase")
|
||||
}
|
||||
|
||||
interactive, _ := cmd.Context().Value("interactive").(bool)
|
||||
@@ -96,6 +101,7 @@ func downloadCmd() *cobra.Command {
|
||||
|
||||
dependencies.Logger.Log().
|
||||
Str("output", out.DestinationPath).
|
||||
Bool("purchased", purchased).
|
||||
Bool("success", true).
|
||||
Send()
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ const (
|
||||
PrivateAppStoreAPIDomainPrefixWithAuthCode = "p71"
|
||||
PrivateAppStoreAPIDomain = "buy." + iTunesAPIDomain
|
||||
PrivateAppStoreAPIPathAuthenticate = "/WebObjects/MZFinance.woa/wa/authenticate"
|
||||
PrivateAppStoreAPIPathPurchase = "/WebObjects/MZBuy.woa/wa/buyProduct"
|
||||
PrivateAppStoreAPIPathPurchase = "/WebObjects/MZFinance.woa/wa/buyProduct"
|
||||
PrivateAppStoreAPIPathDownload = "/WebObjects/MZFinance.woa/wa/volumeStoreDownloadProduct"
|
||||
|
||||
HTTPHeaderStoreFront = "X-Set-Apple-Store-Front"
|
||||
|
||||
Reference in new issue
Block a user