requestProducts static method
Future<AWResponseModel<List<AWProduct> > ?>
requestProducts(
- AwPlatformType type,
- String productType,
- List<
String> productIds
请求商品信息 platform:平台,1:Android,2:iOS productType: 安卓使用的,inapp、subs
Implementation
static Future<AWResponseModel<List<AWProduct>>?> requestProducts(
AwPlatformType type, String productType, List<String> productIds) async {
if (type == AwPlatformType.android) {
return requestAndroidProducts(productType, productIds);
}
if (type == AwPlatformType.ios) {
return requestIosProducts(productIds);
}
}