|
@@ -370,13 +370,12 @@
|
|
for (let i = 0; i < this.list.length; i++) {
|
|
for (let i = 0; i < this.list.length; i++) {
|
|
SpecArr.push(this.list[i].spec)
|
|
SpecArr.push(this.list[i].spec)
|
|
}
|
|
}
|
|
- // #ifdef APP-PLUS-IOS
|
|
|
|
// 创建示例
|
|
// 创建示例
|
|
|
|
+ console.log("start iap init",SpecArr);
|
|
this._iap = new Iap({
|
|
this._iap = new Iap({
|
|
products: SpecArr // 苹果开发者中心创建
|
|
products: SpecArr // 苹果开发者中心创建
|
|
})
|
|
})
|
|
this.initApple();
|
|
this.initApple();
|
|
- // #endif
|
|
|
|
// 充值列表已加载完成
|
|
// 充值列表已加载完成
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -391,7 +390,9 @@
|
|
await this._iap.init();
|
|
await this._iap.init();
|
|
|
|
|
|
// 从苹果服务器获取产品列表
|
|
// 从苹果服务器获取产品列表
|
|
|
|
+ console.log("start iap initApple1");
|
|
this.productList = await this._iap.getProduct();
|
|
this.productList = await this._iap.getProduct();
|
|
|
|
+ console.log("start iap initApple2",this.productList);
|
|
this.productList[0].checked = true;
|
|
this.productList[0].checked = true;
|
|
this.productId = this.productList[0].productid;
|
|
this.productId = this.productList[0].productid;
|
|
|
|
|