record danmaku ip and referer

This commit is contained in:
DIYgod
2017-03-25 19:55:59 +08:00
parent 18acaad609
commit 3a798cfcd7
2 changed files with 8 additions and 5 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ var danmakuSchema = new mongoose.Schema({
time: Number,
text: String,
color: String,
type: String
type: String,
ip: String,
referer: String
});
var danmaku = mongoose.model('dan', danmakuSchema);