count.js 300 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 'use strict'; const api = global.yoho.API; const cartCount = (uid, shoppingKey) => { return api.get('', { method: 'app.Shopping.count', uid: uid, shopping_key: shoppingKey }).then((result) => { return result; }); }; module.exports = { cartCount };