mirror of
https://github.com/eryajf/chatgpt-dingtalk.git
synced 2026-04-22 15:37:19 +08:00
23 lines
382 B
Go
23 lines
382 B
Go
package public
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/eryajf/chatgpt-dingtalk/pkg/dingbot"
|
|
)
|
|
|
|
func FirstCheck(rmsg *dingbot.ReceiveMsg) bool {
|
|
lc := UserService.GetUserMode(rmsg.GetSenderIdentifier())
|
|
if lc == "" {
|
|
if Config.DefaultMode == "串聊" {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
if lc != "" && strings.Contains(lc, "串聊") {
|
|
return true
|
|
}
|
|
return false
|
|
}
|