Authored by OF1706

头部banner

... ... @@ -47,7 +47,10 @@ const index = (req, res) => {
banner.src = helpers.image(banner.src, width, height, 2);
banner.url = banner.url;
res.jsonp(banner);
res.jsonp({
code: 200,
data: banner
});
}
}
});
... ...
... ... @@ -23,7 +23,7 @@ router.post('/upload/image', multipartMiddleware, uploadCtrl.uploadImg);
router.get('/erp2goods', erp2goods.find);
router.get('/getbanner1', getBanner.index);
router.get('/getbanner', getBanner.index);
module.exports = router;
... ...