upDateUser_networkFromClickId.js 311 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.currentClickId }).update({
  5. fromClickId: ctx.query.fromClickId
  6. })
  7. } else {
  8. ctx.state.code = -1
  9. }
  10. }