微信小程序server mysql knexjs const { mysql } = require('../qcloud') module.exports = async (ctx, next) => { return mysql.select() .from('cSessionInfo') .then(function (response) { ctx.state.data = response }) }