fix: UPF流量累计无效问题

This commit is contained in:
TsMask committed 2025-03-19 16:18:44 +08:00
1 parent 52da27fcb5
commit 20e6e855c3
3 files changed
+11

No files matched your search

+4
View File
@@ -71,6 +71,10 @@ func DefaultRDB() *redis.Client {
// 获取实例
func RDB(source string) *redis.Client {
// 不指定时获取默认实例
if source == "" {
source = config.Get("redis.defaultDataSourceName").(string)
}
return rdbMap[source]
}
@@ -92,6 +92,7 @@ func (r PerfKPI) UPFTodayFlowUpdate(rmUID string, upValue, downValue int64, rest
if err != nil {
return err
}
return nil
}
// 使用HIncrBy实时累加统计值