This commit is contained in:
suguo 2026-03-20 17:08:31 +08:00
parent fd345d6b21
commit 67f42dad43
1 changed files with 1 additions and 8 deletions

View File

@ -34,14 +34,7 @@ func WechatAuth(c *gin.Context) {
})
return
}
code := c.Query("code")
if code == "" {
c.JSON(http.StatusBadRequest, gin.H{
"error": "code is required",
})
return
}
resp, err := service.WechatAuth(&reqid, &code)
resp, err := service.WechatAuth(&reqid)
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{
"error": err.Error(),