增加当日统计接口

This commit is contained in:
GoEdgeLab
2022-04-07 19:46:45 +08:00
parent 12930b9690
commit 494f38077c
2 changed files with 10 additions and 0 deletions

View File

@@ -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()

View File

@@ -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)