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/scoreUpdate/index.js

8 lines
210 B

'use strict';
exports.main = async (event, context) => {
const db = uniCloud.database()
db.collection('dish-score').add({dish_id:event.dish_id,score:event.score})
//返回数据给客户端
return event
};