Commit 7b16d146 authored by 李超鹏's avatar 李超鹏

云函数修改bug

parent 2cb5a458
...@@ -7,10 +7,10 @@ exports.main = async (event, context) => { ...@@ -7,10 +7,10 @@ exports.main = async (event, context) => {
for(let i = 0; i < data.length; i++){ for(let i = 0; i < data.length; i++){
let key = data[i].type let key = data[i].type
if(map.has(key)){ if(map.has(key)){
data[i].images = data[i].images.split(";") data[i].images = data[i].images.split(",")
map.get(key).list.push(data[i]) map.get(key).list.push(data[i])
}else{ }else{
data[i].images = data[i].images.split(";") data[i].images = data[i].images.split(",")
map.set(key,{type:key, list:[data[i]]}) map.set(key,{type:key, list:[data[i]]})
} }
} }
......
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