Authored by htoooth

fix api

'use strict';
const _ = require('lodash');
const api = require('../models/new-user-api');
const check = (uid) => {
... ... @@ -8,7 +9,16 @@ const check = (uid) => {
return {};
}
if (!_.isEmpty(_.get(result, 'data.order_list', []))) {
return {
isNew: true
};
} else {
return {
isNew: false
};
}
});
};
... ...