Authored by OF1706

头部banner

@@ -47,7 +47,10 @@ const index = (req, res) => { @@ -47,7 +47,10 @@ const index = (req, res) => {
47 banner.src = helpers.image(banner.src, width, height, 2); 47 banner.src = helpers.image(banner.src, width, height, 2);
48 banner.url = banner.url; 48 banner.url = banner.url;
49 49
50 - res.jsonp(banner); 50 + res.jsonp({
  51 + code: 200,
  52 + data: banner
  53 + });
51 } 54 }
52 } 55 }
53 }); 56 });
@@ -23,7 +23,7 @@ router.post('/upload/image', multipartMiddleware, uploadCtrl.uploadImg); @@ -23,7 +23,7 @@ router.post('/upload/image', multipartMiddleware, uploadCtrl.uploadImg);
23 23
24 router.get('/erp2goods', erp2goods.find); 24 router.get('/erp2goods', erp2goods.find);
25 25
26 -router.get('/getbanner1', getBanner.index); 26 +router.get('/getbanner', getBanner.index);
27 27
28 module.exports = router; 28 module.exports = router;
29 29