orderDetail.js
784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Created by PhpStorm.
* User: Targaryen
* Date: 2016/8/10
* Time: 13:43
*/
'use strict';
const api = global.yoho.API;
const singleAPI = global.yoho.SingleAPI;
const helpers = global.yoho.helpers;
const camelCase = global.yoho.camelCase;
/**
* 个人详情数据
*/
const _viewOrderData = (orderCode, uid, sessionKey) => {
return api.get('', {
method: 'app.SpaceOrders.detail',
orderCode: orderCode,
uid: uid,
sessionKey: sessionKey
}, {code: 200});
};
const orderDetail = (orderCode, uid, sessionKey) => {
let result = {
};
return api.all([
_viewOrderData(1, 10851797, 1)
]).then(result => {
console.log(result[0].data);
return result;
});
};
module.exports = {
orderDetail
};