// 购物车数量 'use strict'; const countModel = require('../models/count'); const cartCount = (req, res, next) => { let uid = req.user.uid; let shoppingKey = req.cookies._SPK || ''; req.ctx(countModel).cartCount(uid, shoppingKey).then((result) => { res.json(result); }).catch(next); }; module.exports = { cartCount };