feat: 完成人机交互验证 API 接入,增加短信防刷验证

This commit is contained in:
RockYang
2023-07-25 17:00:24 +08:00
parent cab955c292
commit c5be114db2
18 changed files with 705 additions and 213 deletions

View File

@@ -33,7 +33,7 @@ func NewDefaultConfig() *types.AppConfig {
HttpOnly: false,
SameSite: http.SameSiteLaxMode,
},
Func: types.FunctionApiConfig{},
ApiConfig: types.ChatPlusApiConfig{},
StartWechatBot: false,
}
}

View File

@@ -15,7 +15,7 @@ type AppConfig struct {
StaticDir string // 静态资源目录
StaticUrl string // 静态资源 URL
Redis RedisConfig // redis 连接信息
Func FunctionApiConfig // function api configs
ApiConfig ChatPlusApiConfig // chatplus api configs
AesEncryptKey string
SmsConfig AliYunSmsConfig // 短信发送配置
StartWechatBot bool // 是否启动微信机器人
@@ -86,7 +86,7 @@ type SystemConfig struct {
UserInitCalls int `json:"user_init_calls"` // 新用户注册默认总送多少次调用
}
type FunctionApiConfig struct {
type ChatPlusApiConfig struct {
ApiURL string
AppId string
Token string