Authored by ccbikai(👎🏻🍜)

领券支持 jsonp

... ... @@ -76,7 +76,7 @@ exports.receive = (req, res, next) => {
}
if (!uid) {
return res.json({
return res.jsonp({
code: 400,
message: '抱歉,您暂未登录!'
});
... ... @@ -85,6 +85,6 @@ exports.receive = (req, res, next) => {
model.receiveCoupon({
couponID: req.query.couponID
}, uid).then(result => {
res.json(result);
res.jsonp(result);
}).catch(next);
};
... ...