修复获得商品的活动信息时,数组参数在小程序兼容性存在问题

pull/17/head
YunaiV 2023-11-20 23:45:31 +08:00
parent 33ac3cf2e6
commit 245a04aedc
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export function getActivityListBySpuId(spuId) {
// 获得多个商品,近期参与的每个活动
export function getActivityListBySpuIds(spuIds) {
return request.get("app-api/promotion/activity/list-by-spu-ids", {
spuIds
spuIds: spuIds && spuIds.length > 0 ? spuIds.join(',') : undefined
}, {
noAuth: true // TODO 芋艿:后续要做调整
});