...
|
...
|
@@ -61,6 +61,11 @@ exports.productLst = function(req, res, next) { |
|
|
}
|
|
|
|
|
|
getProductList.then((result) => {
|
|
|
res.set({
|
|
|
'Cache-Control': 'no-cache',
|
|
|
Pragma: 'no-cache',
|
|
|
Expires: (new Date(1900, 0, 1, 0, 0, 0, 0)).toUTCString()
|
|
|
});
|
|
|
res.jsonp(result);
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
@@ -83,6 +88,11 @@ exports.coupon = function(req, res, next) { |
|
|
result.data.startTime = moment.unix(result.data.startTime).format('YYYY.M.D');
|
|
|
result.data.endTime = moment.unix(result.data.endTime).format('YYYY.M.D');
|
|
|
}
|
|
|
res.set({
|
|
|
'Cache-Control': 'no-cache',
|
|
|
Pragma: 'no-cache',
|
|
|
Expires: (new Date(1900, 0, 1, 0, 0, 0, 0)).toUTCString()
|
|
|
});
|
|
|
res.jsonp(result);
|
|
|
}).catch(next);
|
|
|
}; |
...
|
...
|
|