功能特性: - 用户端充值记录页面,从使用日志中分离 - 充值记录中的去开发票功能 - 管理员发票管理页面 - 发票申请、处理、邮件通知功能 - 侧边栏菜单更新 - UI优化和控制台清理 - Docker部署配置 - 生产环境安全配置
33 lines
794 B
Go
33 lines
794 B
Go
package operation_setting
|
|
|
|
import "strings"
|
|
|
|
var DemoSiteEnabled = false
|
|
var SelfUseModeEnabled = false
|
|
|
|
var AutomaticDisableKeywords = []string{
|
|
"Your credit balance is too low",
|
|
"This organization has been disabled.",
|
|
"You exceeded your current quota",
|
|
"Permission denied",
|
|
"The security token included in the request is invalid",
|
|
"Operation not allowed",
|
|
"Your account is not authorized",
|
|
}
|
|
|
|
func AutomaticDisableKeywordsToString() string {
|
|
return strings.Join(AutomaticDisableKeywords, "\n")
|
|
}
|
|
|
|
func AutomaticDisableKeywordsFromString(s string) {
|
|
AutomaticDisableKeywords = []string{}
|
|
ak := strings.Split(s, "\n")
|
|
for _, k := range ak {
|
|
k = strings.TrimSpace(k)
|
|
k = strings.ToLower(k)
|
|
if k != "" {
|
|
AutomaticDisableKeywords = append(AutomaticDisableKeywords, k)
|
|
}
|
|
}
|
|
}
|