myqrcode.js 268 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 'use strict'; const api = global.yoho.API; exports.getQr = (params) => { return api.get('', { method: 'app.twoDimen.getCode', uid: params.token, }).then(result => { return (result && result.date && result.data.code) || ''; }); };