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
cdaf3ce7
Commit
cdaf3ce7
authored
Apr 01, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-photo-v2' of
https://git.banshouhui.com/heyinchen/take_order
into dev-photo-v2
parents
cefd36fb
495e2482
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
309 additions
and
32 deletions
+309
-32
index.js
...r/uniCloud-tcb/cloudfunctions/common/user-common/index.js
+5
-4
getGroupStandardV2.param.json
...unctions/getGroupStandardV2/getGroupStandardV2.param.json
+2
-2
index.js
...r/uniCloud-tcb/cloudfunctions/getGroupStandardV2/index.js
+1
-1
db_init.json
take-order/uniCloud-tcb/database/db_init.json
+301
-25
No files found.
take-order/uniCloud-tcb/cloudfunctions/common/user-common/index.js
View file @
cdaf3ce7
async
function
getUserId
(
token
)
{
async
function
getUserId
(
token
)
{
const
res
=
await
uniCloud
.
httpclient
.
request
(
"https://system.banshouhui.com/wxh-worker-rest/rest/"
+
token
+
const
res
=
await
uniCloud
.
httpclient
.
request
(
"https://system.dev.banshouhui.com/wxh-worker-rest/rest/"
+
token
+
"/myinfo/id"
,
{
"/myinfo/id"
,
{
method
:
'GET'
method
:
'GET'
,
dataType
:
'text'
})
})
console
.
log
(
res
.
data
)
return
res
&&
res
.
status
===
200
?
res
.
data
:
token
return
res
&&
res
.
status
===
'200'
?
res
.
data
:
token
}
}
module
.
exports
=
{
module
.
exports
=
{
...
...
take-order/uniCloud-tcb/cloudfunctions/getGroupStandardV2/getGroupStandardV2.param.json
View file @
cdaf3ce7
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
//
配置教程参考:https
:
//uniapp.dcloud.net.cn/uniCloud/quickstart?id=runparam
//
配置教程参考:https
:
//uniapp.dcloud.net.cn/uniCloud/quickstart?id=runparam
{
{
"token"
:
""
,
"token"
:
"
RTOKENeb70458c5502c48838d5e4cf84900767fa010f00
"
,
"classify_id"
:
"79550af260555cc20afb34146966a2c4"
,
"classify_id"
:
"79550af260555cc20afb34146966a2c4"
,
"system_id"
:
"79550af260555cc20afb34156c94b32c"
,
"system_id"
:
"79550af260555cc20afb34156c94b32c"
,
"brand_id"
:
"
79550af260555cc20afb3417731a827c
"
"brand_id"
:
"
28ee4e3e6063f2880d8956a013293a7f
"
}
}
take-order/uniCloud-tcb/cloudfunctions/getGroupStandardV2/index.js
View file @
cdaf3ce7
...
@@ -25,7 +25,7 @@ exports.main = async (event, context) => {
...
@@ -25,7 +25,7 @@ exports.main = async (event, context) => {
})
})
.
done
(),
.
done
(),
as
:
'imageList'
as
:
'imageList'
}).
match
({
"classify_id"
:
event
.
classify_id
,
"system_id"
:
event
.
system_id
,
"brand_id"
:
event
.
brand_id
}).
end
()
}).
match
({
"classify_id"
:
event
.
classify_id
,
"system_id"
:
event
.
system_id
,
"brand_id"
:
event
.
brand_id
}).
limit
(
100
).
end
()
const
watermarkC
=
uniCloud
.
database
().
collection
(
"user_watermark"
).
field
({
'_id'
:
false
})
const
watermarkC
=
uniCloud
.
database
().
collection
(
"user_watermark"
).
field
({
'_id'
:
false
})
let
userWatermark
=
await
watermarkC
.
where
({
let
userWatermark
=
await
watermarkC
.
where
({
user_id
:
user_id
,
user_id
:
user_id
,
...
...
take-order/uniCloud-tcb/database/db_init.json
View file @
cdaf3ce7
This diff is collapsed.
Click to expand it.
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