Commit 1d9b7a34 authored by 李超鹏's avatar 李超鹏

云函数修改

parent 1212bc31
......@@ -7,10 +7,12 @@ exports.main = async (event, context) => {
for(let i = 0; i < data.length; i++){
let key = data[i].type
if(map.has(key)){
data[i].images = data[i].images.split(";")
map.get(key).list.push(data[i])
}else{
data[i].images = data[i].images.split(";")
map.set(key,{type:key, list:[data[i]]})
}
}
}
return [...map.values()]
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment