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

云函数 调整

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