mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 12:20:28 +08:00
增加当日统计接口
This commit is contained in:
@@ -500,6 +500,10 @@ func (this *RPCClient) UserPlanRPC() pb.UserPlanServiceClient {
|
||||
return pb.NewUserPlanServiceClient(this.pickConn())
|
||||
}
|
||||
|
||||
func (this *RPCClient) TrafficDailyStatRPC() pb.TrafficDailyStatServiceClient {
|
||||
return pb.NewTrafficDailyStatServiceClient(this.pickConn())
|
||||
}
|
||||
|
||||
// Context 构造Admin上下文
|
||||
func (this *RPCClient) Context(adminId int64) context.Context {
|
||||
ctx := context.Background()
|
||||
|
||||
@@ -225,6 +225,12 @@ window.teaweb = {
|
||||
max: max
|
||||
}
|
||||
},
|
||||
splitFormat: function (s) {
|
||||
let matchResult = s.match(/^([0-9.]+)([a-zA-Z]+)$/)
|
||||
let size = parseFloat(matchResult[1])
|
||||
let unit = matchResult[2]
|
||||
return [size, unit]
|
||||
},
|
||||
popup: function (url, options) {
|
||||
if (url != null && url.length > 0 && url.substring(0, 1) == '.') {
|
||||
url = Tea.url(url)
|
||||
|
||||
Reference in New Issue
Block a user