feat: 本地重试

This commit is contained in:
CaIon committed 2024-04-04 16:35:44 +08:00
1 parent 346ed4cae1
commit fb992eeeac
11 files changed
+215 -103

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ func TokenAuth() func(c *gin.Context) {
}
if len(parts) > 1 {
if model.IsAdmin(token.UserId) {
c.Set("channelId", parts[1])
c.Set("specific_channel_id", parts[1])
} else {
abortWithOpenAiMessage(c, http.StatusForbidden, "普通用户不支持指定渠道")
return