Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjh5
Project
Project
Details
Activity
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
data_server
gjjh5
Commits
ba71d1d9
Commit
ba71d1d9
authored
Apr 25, 2021
by
肖爱江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拉数据
parent
818a47c0
Pipeline
#31491
passed with stage
in 17 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
.gitignore
.gitignore
+2
-0
order.js
app/controller/order.js
+1
-1
order.js
app/service/order.js
+2
-1
No files found.
.gitignore
View file @
ba71d1d9
...
@@ -10,3 +10,5 @@ run/
...
@@ -10,3 +10,5 @@ run/
.DS_Store
.DS_Store
*.sw*
*.sw*
*.un~
*.un~
.github/
.vscode
app/controller/order.js
View file @
ba71d1d9
...
@@ -165,7 +165,7 @@ class OrderController extends Controller {
...
@@ -165,7 +165,7 @@ class OrderController extends Controller {
const
data
=
await
service
.
order
.
getOneByOrderId
({
orderId
,
status
:
'success'
});
const
data
=
await
service
.
order
.
getOneByOrderId
({
orderId
,
status
:
'success'
});
if
(
data
)
{
if
(
data
)
{
await
service
.
partner
.
appKeyLimit
(
appKey
);
await
service
.
partner
.
appKeyLimit
(
appKey
);
if
(
data
.
status
===
'success'
&&
(
data
.
appKey
===
appKey
)
)
{
if
(
data
.
appKey
===
appKey
)
{
const
result
=
await
service
.
storage
.
read
(
orderId
,
appKey
);
const
result
=
await
service
.
storage
.
read
(
orderId
,
appKey
);
const
ret
=
service
.
washData
.
dealData
(
result
);
const
ret
=
service
.
washData
.
dealData
(
result
);
ctx
.
success
(
ret
);
ctx
.
success
(
ret
);
...
...
app/service/order.js
View file @
ba71d1d9
...
@@ -14,8 +14,9 @@ class OrderService extends Service {
...
@@ -14,8 +14,9 @@ class OrderService extends Service {
async
getOneByOrderId
(
params
)
{
async
getOneByOrderId
(
params
)
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
const
order
=
await
ctx
.
model
.
TaskStatus
.
findOne
({
const
order
=
await
ctx
.
model
.
TaskStatus
.
findOne
({
attributes
:
[
'id'
,
'orderId'
],
attributes
:
[
'id'
,
'orderId'
,
'appKey'
],
where
:
params
,
where
:
params
,
raw
:
true
,
});
});
return
order
;
return
order
;
}
}
...
...
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