Authored by htoooth

fix api

'use strict';
const getOrdersList = (uid) => {
const api = global.yoho.api;
exports.getUserOrders = (uid)=>{
return api.get('', {
method: 'app.SpaceOrders.get',
uid: uid,
type: 5,
page: 1,
limit: 10
});
};
module.exports = {
getOrdersList
};
... ...
... ... @@ -3,7 +3,13 @@
const api = require('../models/new-user-api');
const check = (uid) => {
return api.getUserOrders(uid).then((result) => {
if (result.code !== 200) {
return {};
}
});
};
module.exports = {
... ...