Authored by 郭成尧

uid

... ... @@ -76,15 +76,6 @@ exports.couponSend = (req, res, next) => {
data: ''
};
// APP时用参数中的ID
if (!uid) {
uid = app && app.uid ? app.uid : 0;
}
if (uid === '' || uid === 0 || token === '' || token === 0) {
return res.jsonp(resultData);
}
// 接口要加 session 校验,跨域异步请求未添加相关参数
if (req.yoho.isApp) {
if (app.app_version && app.client_type && app.session_key && app.uid) {
... ... @@ -102,6 +93,10 @@ exports.couponSend = (req, res, next) => {
}
}
if (uid === '' || uid === 0 || token === '' || token === 0) {
return res.jsonp(resultData);
}
model.couponSend(uid, token).then(result => {
res.set({
'Cache-Control': 'no-cache',
... ...