wechat.js
328 Bytes
/**
* 微信分享签名
* Bi Kai <kai.bi@yoho.cn>
*/
'use strict';
const wechatModel = require('../models/wechat');
exports.shareToken = (req, res, next) => {
wechatModel.calcSignature({
url: req.query.url || 'http://www.yohoblk.com/'
}).then((result) => {
res.jsonp(result);
}).catch(next);
};