First merge from develop to main (WIP) #7

Merged
sugar merged 199 commits from develop into main 2026-01-27 17:47:07 +00:00
Showing only changes of commit 89c2d11f19 - Show all commits

View File

@@ -1,6 +1,7 @@
package auth
import (
"fmt"
"net/url"
"nixcn-cms/data"
"nixcn-cms/pkgs/authcode"
@@ -17,8 +18,9 @@ func Exchange(c *gin.Context) {
State string `json:"state"`
}
err := c.BindJSON(exchangeReq)
err := c.BindJSON(&exchangeReq)
if err != nil {
fmt.Println(err)
utils.HttpResponse(c, 400, "", "invalid request")
return
}