Инструменты пользователя

Инструменты сайта


v6.restore.inapp

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
v6.restore.inapp [2022/06/09 15:13]
serg создано
v6.restore.inapp [2022/06/10 14:07] (текущий)
serg
Строка 36: Строка 36:
 === Response === === Response ===
 <​code>​ <​code>​
-{  +type TRestoryOutput struct ​
-    "Error":""​, + Data        []TPurchase ​ `json:"Data"
-    "Data": []TPurchase+ Err         ​string ​      `json:"E"` 
 + ProductType TProductType `json:"prt"`
 } }
  
-//TPurchase purchase bind 
 type TPurchase struct { type TPurchase struct {
  ProductId ​       string ​                   `json:"​pid"​`  ProductId ​       string ​                   `json:"​pid"​`
Строка 51: Строка 51:
  PurchaseTime ​    ​string ​                   `json:"​t"​`  PurchaseTime ​    ​string ​                   `json:"​t"​`
  ConsumptionState int64                     ​`json:"​cs"​`  ConsumptionState int64                     ​`json:"​cs"​`
- PurchaseType ​    int64                     `json:"​pty"​`+ PurchaseType ​    TPurchaseType ​            `json:"​pty"​`
  DeveloperPayload string ​                   `json:"​dp"​`  DeveloperPayload string ​                   `json:"​dp"​`
  ProductType ​     TProductType ​             `json:"​prt"​`  ProductType ​     TProductType ​             `json:"​prt"​`
  ExpiryTimeMillis int64                     ​`json:"​et"​`  ExpiryTimeMillis int64                     ​`json:"​et"​`
 + Err              string ​                   `json:"​E"​`
 + kind             ​string
 } }
 +
  
 TYovoPurchaseState enum TYovoPurchaseState enum
Строка 64: Строка 67:
  PS_PENDING ​  ​= ​  2  PS_PENDING ​  ​= ​  2
  PS_REFUNDED ​ =   3  PS_REFUNDED ​ =   3
 +)
 +
 +TPurchaseType enum
 +const (
 + PTTest TPurchaseType = iota
 + PTPromo
 + PTRewarded
 ) )
 </​code>​ </​code>​
v6.restore.inapp.1654787604.txt.gz · Последние изменения: 2022/06/09 15:13 — serg