Commit 2972153b authored by 李超鹏's avatar 李超鹏

云函数 调整

parent 5f986d5b
......@@ -18,7 +18,7 @@ exports.main = async (event, context) => {
$.eq(['$user_id', user_id])
]))).sort({
create_date: -1
}).limit(5)
}).limit(10)
.project({
"_id": 0,
"url": 1,
......
......@@ -9,7 +9,7 @@ exports.main = async (event, context) => {
await uniCloud.database().collection("user_upload_file").add({
"user_id": workerId,
"standard_id": event.standardId,
url: event.url,
url: "https://img2.banshouhui.com/" + event.url,
create_date: new Date()
})
return true
......
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