feat: 添加指定模型的能力 (#74)

This commit is contained in:
二丫讲梵
2023-03-07 13:29:05 +08:00
committed by GitHub
parent ab6ecc3f26
commit acb5462a01
8 changed files with 71 additions and 46 deletions

View File

@@ -8,9 +8,10 @@ import (
)
var UserService service.UserServiceInterface
var Config *config.Configuration
func InitSvc() {
config.LoadConfig()
Config = config.LoadConfig()
UserService = service.NewUserService()
_, _ = GetBalance()
}
@@ -18,7 +19,7 @@ func InitSvc() {
func FirstCheck(rmsg ReceiveMsg) bool {
lc := UserService.GetUserMode(rmsg.SenderStaffId)
if lc == "" {
if config.LoadConfig().DefaultMode == "串聊" {
if Config.DefaultMode == "串聊" {
return true
} else {
return false