Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
李奇
8 years ago
Commit
0b9935c02e3336fe2d76aff234fcc87fca6077b5
1 parent
1b075a83
fixed: 待收货订单不存在
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
apps/me/controllers/order.js
apps/me/models/order.js
apps/me/controllers/order.js
View file @
0b9935c
...
...
@@ -97,9 +97,10 @@ const order = {
}).
catch
(
next
);
},
confirmOrder
:
(
req
,
res
,
next
)
=>
{
const
uid
=
req
.
user
.
uid
;
const
orderode
=
req
.
body
.
orderCode
;
orderModel
.
confirmOrder
(
orderode
).
then
(
result
=>
{
orderModel
.
confirmOrder
(
uid
,
orderode
).
then
(
result
=>
{
return
res
.
json
(
result
);
}).
catch
(
next
);
},
...
...
apps/me/models/order.js
View file @
0b9935c
...
...
@@ -81,9 +81,10 @@ exports.readdData = (orderCode, uid) => {
* @param orderCode 订单号
* @returns {Promise.<T>|*}
*/
exports
.
confirmOrder
=
(
orderCode
)
=>
{
exports
.
confirmOrder
=
(
uid
,
orderCode
)
=>
{
return
api
.
post
(
''
,
{
method
:
'app.SpaceOrders.confirm'
,
uid
:
uid
,
order_code
:
orderCode
}).
then
(
result
=>
{
return
result
;
...
...
Please
register
or
login
to post a comment