You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
canteen/uniCloud-aliyun/cloudfunctions/getSwiperImage/index.js

28 lines
861 B

'use strict';
exports.main = async (event, context) => {
const swiperList = [
{
image_src:"https://mp-defb5411-d0ae-4685-93ad-4a81e1f126fc.cdn.bspapp.com/dishes_image/黄焖鸡.png",
image_name:"黄焖鸡",
image_id:"650e8592fe975fba5a6660d6"
},
{
image_src:"https://mp-defb5411-d0ae-4685-93ad-4a81e1f126fc.cdn.bspapp.com/dishes_image/分米鸡.png",
image_name:"分米鸡",
image_id:"650e8610a09a9bd68ba734ed"
},
{
image_src:"https://mp-defb5411-d0ae-4685-93ad-4a81e1f126fc.cdn.bspapp.com/dishes_image/炒鸡.png",
image_name:"炒鸡",
image_id:"650e8646466d416d308b56da"
},
{
image_src:"https://mp-defb5411-d0ae-4685-93ad-4a81e1f126fc.cdn.bspapp.com/dishes_image/广式烧鸭饭.png",
image_name:"广式烧鸭饭",
image_id:"650e8749fe975fba5a66a5f4"
}
]
//返回数据给客户端
return swiperList
};