question_sort.js 261 B

12345678910
  1. module.exports = async (ctx, next) => {
  2. if (ctx.state.$wxInfo.loginState === 1) {
  3. const { mysql } = require('../qcloud')
  4. await mysql('question_sort').select('*').then(res => {
  5. ctx.state.data = res;
  6. })
  7. } else {
  8. ctx.state.code = -1
  9. }
  10. }