ZEPETO.Multiplay.Product
6 分
类型 说明 producterror /#producterror 表示 world 内商品相关请求失败原因的错误代码。 purchasetype /#purchasetype 表示 world 内商品购买类型的枚举。 productstatus /#productstatus 表示 world 内商品状态的枚举。 producttype /#producttype 表示 world 内商品类型的枚举。 productrecord /#productrecord world 内商品信息。 producterror enum 表示 world 内商品相关请求失败原因的错误代码。 名称 值 说明 unknown 1 错误:未知错误。 networkerror 0 错误:与网络问题相关的错误,包括连接中断或连接不稳定。 purchasetype enum 表示 world 内商品购买类型的枚举。 名称 值 说明 consumable "consumable" 消耗型 world 内商品。 nonconsumable "non consumable" 非消耗型 world 内商品。 productstatus enum 表示 world 内商品状态的枚举。 名称 值 说明 active "active" 启用状态。 inactive "inactive" 停用状态。 forbidden "forbidden" 因使用期限到期而被禁用的状态。 producttype enum 表示 world 内商品类型的枚举。 名称 值 说明 item "item" 单个道具的 world 内商品。 itempackage "item package" 包含多个道具的道具礼包类 world 内商品。 currencypackage "currency package" 包含多种货币的货币礼包类 world 内商品。 productrecord interface world 内商品信息。 属性 名称 类型 说明 productid string world 内商品 id。 name string world 内商品名称。 price number world 内商品价格。 purchasetype purchasetype /#purchasetype world 内商品的 purchasetype 。 status productstatus /#productstatus world 内商品的 productstatus 。 producttype producttype /#producttype world 内商品的 producttype 。 currency { currencyid string; name string; isofficialcurrency boolean } 返回购买该 world 内商品所使用的货币类型。 itempackageunits { productid string; itemname string; quantity number }\[] 当 producttype 为 itempackage 时,该 world 内商品包含的道具。 currencypackageunits { currencyid string; currencyname string; quantity number }\[] 当 producttype 为 currencypackage 时,该 world 内商品包含的货币。
