# Function: getPotentialExchangeOptionsByItems

getPotentialExchangeOptionsByItems(params: GetPotentialExchangeOptionsByItemsParams): Promise‹GetPotentialExchangeOptionsByItemsRes

根据给定的物品列表,查找并返回可能满足要求的兑换方案(列表)

description 该方法仅针对给定的物品种类进行判断。举例来说,假设给定两个兑换方案 [AB => D, ABC => E],如果给定物品 AB,则只会返回第一个方案;如果给定物品 ABC,则会返回两个方案;如果给定物品 BC,则不会返回任何方案。

# 参数:

属性 类型
params GetPotentialExchangeOptionsByItemsParams

GetPotentialExchangeOptionsByItemsParams

属性 类型 描述
itemTypeIdsToExchange keyof number[] 要用于兑换的物品种类 ID (列表)
complete? Method 操作完成时(成功或失败),均会调用该回调函数
fail? Method 操作失败时,调用该回调函数
success? Method 操作成功时,调用该回调函数

# 返回值:

Promise‹GetPotentialExchangeOptionsByItemsRes