12 lines
366 B
JavaScript
12 lines
366 B
JavaScript
Tea.context(function () {
|
|
let that = this
|
|
if (this.featureIsOn) {
|
|
this.accessLogs.forEach(function (accessLog) {
|
|
if (typeof (that.regions[accessLog.remoteAddr]) == "string") {
|
|
accessLog.region = that.regions[accessLog.remoteAddr]
|
|
} else {
|
|
accessLog.region = ""
|
|
}
|
|
})
|
|
}
|
|
}) |