no-uid-or-order-id-no-get-api
Showing
2 changed files
with
5 additions
and
1 deletions
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | * @Author: Targaryen | 3 | * @Author: Targaryen |
4 | * @Date: 2017-01-04 15:17:51 | 4 | * @Date: 2017-01-04 15:17:51 |
5 | * @Last Modified by: Targaryen | 5 | * @Last Modified by: Targaryen |
6 | - * @Last Modified time: 2017-01-10 16:43:54 | 6 | + * @Last Modified time: 2017-01-17 16:02:22 |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 'use strict'; | 9 | 'use strict'; |
@@ -53,6 +53,10 @@ const _getOthersBuy2 = (param) => { | @@ -53,6 +53,10 @@ const _getOthersBuy2 = (param) => { | ||
53 | 53 | ||
54 | // 订单信息 | 54 | // 订单信息 |
55 | const _getOtherDetail = (param) => { | 55 | const _getOtherDetail = (param) => { |
56 | + if (!param.uid || !param.orderCode) { | ||
57 | + return Promise.resolve({}); | ||
58 | + } | ||
59 | + | ||
56 | return api.get('', { | 60 | return api.get('', { |
57 | method: 'app.SpaceOrders.detail', | 61 | method: 'app.SpaceOrders.detail', |
58 | uid: param.uid, | 62 | uid: param.uid, |
-
Please register or login to post a comment