Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
和慭琛
take_order
Commits
2972153b
Commit
2972153b
authored
Mar 30, 2021
by
李超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云函数 调整
parent
5f986d5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
index.js
...r/uniCloud-tcb/cloudfunctions/getGroupStandardV2/index.js
+1
-1
index.js
take-order/uniCloud-tcb/cloudfunctions/saveImage/index.js
+1
-1
No files found.
take-order/uniCloud-tcb/cloudfunctions/getGroupStandardV2/index.js
View file @
2972153b
...
@@ -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
,
...
...
take-order/uniCloud-tcb/cloudfunctions/saveImage/index.js
View file @
2972153b
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment