...
|
...
|
@@ -147,7 +147,26 @@ const getProductList = (req, res, next) => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
const remind = (req, res, next) => {};
|
|
|
// only app
|
|
|
const remind = (req, res, next) => {
|
|
|
if (!(req.yoho.isApp && req.xhr)) {
|
|
|
return res.status(404).json({
|
|
|
msg: '请求不合法'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return seckillModel.remind({
|
|
|
on_off: req.body.on_off,
|
|
|
activity_id: Number.parseInt(req.body.activity_id, 10),
|
|
|
product_skn: Number.parseInt(req.body.product_skn, 10),
|
|
|
uid: Number.parseInt(req.body.uid, 10),
|
|
|
sec_kill_id: Number.parseInt(req.body.sec_kill_id, 10),
|
|
|
app_type: 0
|
|
|
})
|
|
|
.then(result=> {
|
|
|
return res.json(result);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
|
index,
|
...
|
...
|
|