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
a83e8db0
Commit
a83e8db0
authored
Mar 01, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gjj
parent
024d7c0a
Pipeline
#3993
passed with stage
in 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
order.js
app/controller/order.js
+14
-0
router.js
app/router.js
+2
-0
No files found.
app/controller/order.js
View file @
a83e8db0
...
...
@@ -93,6 +93,20 @@ class OrderController extends Controller {
}
}
async
orderShow
()
{
const
{
ctx
,
service
}
=
this
;
const
{
appKey
,
orderId
}
=
ctx
.
params
;
const
data
=
await
service
.
order
.
getOneByOrderId
(
orderId
);
if
(
data
)
{
if
(
data
.
status
===
'success'
&&
(
data
.
appKey
===
appKey
))
{
const
result
=
await
service
.
storage
.
read
(
orderId
,
appKey
);
ctx
.
success
(
result
);
return
;
}
}
ctx
.
fail
(
'无此订单号'
);
}
// async fetchOrderId() {
// const { ctx, service } = this;
// const signParams = ctx.helper.buildRequestBody({ token });
...
...
app/router.js
View file @
a83e8db0
...
...
@@ -39,6 +39,8 @@ module.exports = app => {
gjjRouter
.
post
(
'/getCityConfig'
,
controller
.
task
.
fetchCityConfig
)
//获取城市配置
gjjRouter
.
get
(
'/orderData/:appKey/:orderId'
,
controller
.
order
.
orderShow
);
//获取展示页面数据
// 这个接口之后会移除掉
// router.get('/orders', controller.order.fetchOrderId);
...
...
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