added hostName

This commit is contained in:
Lei PAN
2023-12-08 14:37:00 +01:00
parent 64f45bc0a3
commit 5460085cfa
+5 -1
View File
@@ -1,4 +1,6 @@
const PublishType = require("./PublishType");
const {hostname} = require("os");
const hostName = hostname();
class ReserveResultPojo {
@@ -13,6 +15,7 @@ class ReserveResultPojo {
this.email = mail;
this.type = type;
this.source_from = ""
this.hostName = hostName
this.created_at = new Date().toLocaleString()
}
@@ -27,7 +30,8 @@ class ReserveResultPojo {
url: this.url,
store_type: this.storeType,
source_from: this.source_from,
created_at: this.created_at
created_at: this.created_at,
hostName: this.hostName
}
}