feat: add WeChat session authentication
This commit is contained in:
@@ -58,6 +58,15 @@ cd /Users/zhangheng/project/ai/miniprogram/teaching-feedback-assistant
|
||||
test -f server/.env || cp server/.env.example server/.env
|
||||
```
|
||||
|
||||
小程序业务接口还需要微信登录。在 `server/.env` 中填写小程序后台提供的 AppSecret,不要提交或粘贴到日志:
|
||||
|
||||
```env
|
||||
WECHAT_APP_ID=wx3fe11e262a4b4885
|
||||
WECHAT_APP_SECRET=<仅保存在服务端>
|
||||
AUTH_SESSION_TTL_DAYS=30
|
||||
ALLOW_DEVELOPMENT_USER_HEADER=false
|
||||
```
|
||||
|
||||
本地 FunASR 默认配置如下,无需腾讯云密钥:
|
||||
|
||||
```env
|
||||
@@ -150,7 +159,9 @@ curl http://127.0.0.1:8080/health | jq .
|
||||
"database_configured": true,
|
||||
"speech_configured": true,
|
||||
"speech_available": true,
|
||||
"speech_provider": "local-funasr"
|
||||
"speech_provider": "local-funasr",
|
||||
"wechat_auth_configured": true,
|
||||
"development_auth_enabled": false
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user