...
|
...
|
@@ -22,7 +22,7 @@ const _getPname = (req) => { |
|
|
};
|
|
|
|
|
|
exports.index = function(req, res, next) {
|
|
|
model.index({
|
|
|
req.ctx(model).index({
|
|
|
code: req.params.code,
|
|
|
type: stringProcess.paramsFilter(req.query.type),
|
|
|
from_page_name: _getPname(req),
|
...
|
...
|
@@ -53,7 +53,7 @@ exports.index = function(req, res, next) { |
|
|
};
|
|
|
|
|
|
exports.sidebar = function(req, res, next) {
|
|
|
model.index({
|
|
|
req.ctx(model).index({
|
|
|
code: req.params.code
|
|
|
}).then((result) => {
|
|
|
if (!result) {
|
...
|
...
|
@@ -68,7 +68,7 @@ exports.sidebar = function(req, res, next) { |
|
|
|
|
|
|
|
|
exports.bottombar = function(req, res, next) {
|
|
|
model.index({
|
|
|
req.ctx(model).index({
|
|
|
code: req.params.code
|
|
|
}).then((result) => {
|
|
|
if (!result) {
|
...
|
...
|
@@ -117,7 +117,7 @@ exports.couponSend = (req, res, next) => { |
|
|
return res.jsonp(resultData);
|
|
|
}
|
|
|
|
|
|
model.couponSend(uid, token).then(result => {
|
|
|
req.ctx(model).couponSend(uid, token).then(result => {
|
|
|
res.set({
|
|
|
'Cache-Control': 'no-cache',
|
|
|
Pragma: 'no-cache',
|
...
|
...
|
|