跳到主要内容

IDP.Product.getProductsAsync() 函数

function getProductsAsync(productIds: string[]): Promise<Record<string, IProduct>>;

批量获取商品信息 当前批量获取时,不支持获取customFields字段

参数:

  • productIds: string[]

    返回值为一个对象,对象中key为productId,而对应值为商品信息

    @vm-type AsyncFunctionType

返回值: Promise<Record<string, IProduct>>