Authored by yyq

channel newuser

... ... @@ -86,8 +86,13 @@ exports.getIndexGuide = (req, res, next) => {
};
exports.hasNewUserFloor = (req, res, next) => {
let uid = req.user.uid;
channelModel.hasNewUserFloor(req.yoho.channel, req.user.uid).then(data => {
if (!uid) {
return res.send({code: 200, isNewUser: false});
}
channelModel.hasNewUserFloor(req.yoho.channel, uid).then(data => {
res.send(data);
}).catch(next);
};
... ...