mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-11 08:50:32 +08:00
服务日志:增加区域信息
This commit is contained in:
10
web/views/@default/servers/server/log/today.js
Normal file
10
web/views/@default/servers/server/log/today.js
Normal file
@@ -0,0 +1,10 @@
|
||||
Tea.context(function () {
|
||||
let that = this
|
||||
this.accessLogs.forEach(function (accessLog) {
|
||||
if (typeof (that.regions[accessLog.remoteAddr]) == "string") {
|
||||
accessLog.region = that.regions[accessLog.remoteAddr]
|
||||
} else {
|
||||
accessLog.region = ""
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user