text: module.exports = message => {
    let options = {
      toUserName: message.FromUserName,
      fromUserName: message.ToUserName,
      CreateTime: Date.now(),
      msgType: 'text'
    }
  
    let content = '您在说什么，我听不懂？'
  
    if (message.MsgType === 'text') {
      if (message.Content === '1') {
        content = '大吉大利，今晚吃鸡'
      } else if (message.Content === '2') {
        content = '落地成盒'
      } else if (message.Content.match('love')) {
        content = 'I Love You'
      }
    } else if (message.MsgType === 'image') {
      options.msgType = 'image'
      options.media_id = message.MediaId
    } else if (message.MsgType === 'voice') {
      options.msgType = 'voice'
      options.media_id = message.MediaId
    } else if (message.MsgType === 'location') {
      content = `纬度：${message.Location_X} 经度：${message.Location_Y} 缩放大小：${message.Location_Scale} 位置信息：${message.Location_Label}`
    } else if (message.MsgType === 'event') {
      if (message.Event === 'subscribe') {
        content = '欢迎您的关注~'
        if (message.EventKey) {
          content = '用户扫码带参数的二维码关注事件'
        }
      } else if (message.Event === 'unsubscribe') {
        console.log('无情取关')
      } else if (message.Event === 'SCAN') {
        content = '用户已经关注过，在扫描带参数的二维码关注事件'
      } else if (message.Event === 'LOCATION') {
        content = `纬度：${message.Latitude} 经度：${message.Longitude} 精度：${message.Precision}`
      }
    } else if (message.MsgType === 'video') {
      options.msgType = 'video'
      options.media_id = message.MediaId
      options.title = message.Title
      options.description = message.Description
    } else if (message.MsgType === 'music') {
      options.msgType = 'music'
      options.title = message.Title
      options.description = message.Description
      options.musicURL = message.MusicURL
      options.hQMusicUrl = message.HQMusicUrl
      options.thumbMediaId = message.ThumbMediaId
    } else if (message.MsgType === 'news') {
      options.msgType = 'news'
      options.count = message.ArticleCount
      options.articles = message.Articles
      options.title = message.Title
      options.description = message.Description
      options.picUrl = message.PicUrl
      options.url = message.Url
    }
  
    options.content = content
  
    return options
  }
  