...
|
...
|
@@ -71,6 +71,7 @@ exports.bottombar = function(req, res, next) { |
|
|
*/
|
|
|
exports.couponSend = (req, res, next) => {
|
|
|
let token = req.query.token || '',
|
|
|
coupontype = req.query.coupontype,
|
|
|
uid = req.user.uid,
|
|
|
app = req.query.app || {};
|
|
|
|
...
|
...
|
@@ -100,8 +101,11 @@ exports.couponSend = (req, res, next) => { |
|
|
if (uid === '' || uid === 0 || token === '' || token === 0) {
|
|
|
return res.jsonp(resultData);
|
|
|
}
|
|
|
const promise = coupontype === 'ufo' ?
|
|
|
req.ctx(model).couponSendUFO(uid, token) :
|
|
|
req.ctx(model).couponSend(uid, token);
|
|
|
|
|
|
req.ctx(model).couponSend(uid, token).then(result => {
|
|
|
promise.then(result => {
|
|
|
res.set({
|
|
|
'Cache-Control': 'no-cache',
|
|
|
Pragma: 'no-cache',
|
...
|
...
|
|