upDateShareInfoToUser_network.js 296 B

12345678910
  1. module.exports = async (ctx, next) => {
  2. if (ctx.state.$wxInfo.loginState === 1) {
  3. const { mysql } = require('../qcloud')
  4. let res = await mysql('user_network').where({ clickId: ctx.query.clickId }).update({
  5. param_1: ctx.query.content
  6. })
  7. } else {
  8. ctx.state.code = -1
  9. }
  10. }