@alipay/faas-server-sdk MySQL 使用说明 import cloud from '@alipay/faas-server-sdk'; const db = cloud.mysql(); export async function main(event, context) { const userId = cloud.getAlipayContext().OPENID; const rows = await db.query('SELECT * FROM todos where uid = ?', [ userId ]); return { rows }; }