mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-15 09:10:24 +08:00
修复查看服务24小时流量统计会产生panic的问题
This commit is contained in:
@@ -523,11 +523,6 @@ func (this *UserBandwidthStatDAO) HasFullData(tx *dbs.Tx, userId int64, month st
|
||||
return false, errors.New("invalid month '" + month + "'")
|
||||
}
|
||||
|
||||
// 仅供调试
|
||||
if Tea.IsTesting() {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
fullDataLocker.Lock()
|
||||
hasData, ok := fullDataMap[month]
|
||||
fullDataLocker.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user