【优化】租户功能,框架优化

This commit is contained in:
PandaGoAdmin
2022-07-18 18:17:11 +08:00
parent d33bd39570
commit ae38e7bcef
60 changed files with 861 additions and 647 deletions

View File

@@ -1,7 +1,6 @@
package utils
import (
"pandax/base/global"
"regexp"
"sync"
)
@@ -33,7 +32,6 @@ func GetRegexp(pattern string) (regex *regexp.Regexp, err error) {
// it compiles the pattern and creates one.
regex, err = regexp.Compile(pattern)
if err != nil {
global.Log.Warnf(`regexp.Compile failed for pattern "%s"`, pattern)
return
}
// Cache the result object using writing lock.