@@ -23,6 +23,9 @@ export default {
// close socket
wx.closeSocket()
clearInterval(this.timer)
+ wx.request({
+ url: 'http://192.168.0.109:3000/hide?userId=' + wx.getStorageSync('userId'),
+ })
},
globalData: {
fileBasUrl: 'https://mall.rongtongh.cn/storage/img',
@@ -27,6 +27,9 @@ app.get('/heartbeat', (req, res) => {
console.log('Heartbeat', req.query)
})
+app.get('/hide', (req, res) => {
+ console.log('hide', req.query)
+})
// 每隔5秒打印在线用户
setInterval(() => {
console.log(new Date())