feat: publish sanitized custom.97 source
This commit is contained in:
1022 files changed
+69903
-19207
No files matched your search
@@ -8,9 +8,11 @@ import (
|
||||
"github.com/QuantumNous/new-api/common"
|
||||
)
|
||||
|
||||
// The default descriptions are English source keys that the web console
|
||||
// translates; descriptions an administrator saves are shown as written.
|
||||
var userUsableGroups = map[string]string{
|
||||
"default": "默认分组",
|
||||
"vip": "vip分组",
|
||||
"default": "Default group",
|
||||
"vip": "VIP group",
|
||||
}
|
||||
var userUsableGroupsMutex sync.RWMutex
|
||||
|
||||
@@ -29,7 +31,7 @@ func UserUsableGroups2JSONString() string {
|
||||
|
||||
jsonBytes, err := json.Marshal(userUsableGroups)
|
||||
if err != nil {
|
||||
common.SysLog("error marshalling user groups: " + err.Error())
|
||||
common.SysLog(common.LogText("error marshalling user groups: %s", err.Error()))
|
||||
}
|
||||
return string(jsonBytes)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user