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
cede1f71
Commit
cede1f71
authored
Mar 26, 2021
by
李超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询规格返回数据修改
parent
6ce9009e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
index.js
...r/uniCloud-tcb/cloudfunctions/getGroupStandardV2/index.js
+10
-0
No files found.
take-order/uniCloud-tcb/cloudfunctions/getGroupStandardV2/index.js
View file @
cede1f71
...
...
@@ -26,6 +26,15 @@ exports.main = async (event, context) => {
.
done
(),
as
:
'imageList'
}).
end
()
const
watermarkC
=
uniCloud
.
database
().
collection
(
"user_watermark"
).
field
({
'_id'
:
false
})
let
userWatermark
=
await
watermarkC
.
where
({
user_id
:
user_id
,
system_id
:
event
.
system_id
}).
get
()
if
(
!
userWatermark
.
data
||
userWatermark
.
data
.
length
<=
0
)
{
// 用户没有 获取模板
userWatermark
=
await
watermarkC
.
where
({
system_id
:
event
.
system_id
}).
get
()
}
let
userWatermarkData
=
userWatermark
.
data
[
0
]
let
data
=
res
.
data
const
map
=
new
Map
()
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
...
...
@@ -38,6 +47,7 @@ exports.main = async (event, context) => {
data
[
i
].
images
=
data
[
i
].
images
.
split
(
","
)
map
.
set
(
key
,
{
type
:
key
,
userWatermark
:
userWatermarkData
,
list
:
[
data
[
i
]]
})
}
...
...
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