swag中id错误问题的修复 (#1589)

* model.go: fix swagger请求的id问题

* 验证码逻辑修回

---------

Co-authored-by: yang hao <1013055366@qq.com>
This commit is contained in:
奇淼(piexlmax
2023-12-05 23:01:27 +08:00
committed by GitHub
parent d42958734f
commit f98fc6bf3c
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package system
import (
"fmt"
"time"
"github.com/flipped-aurora/gin-vue-admin/server/global"
@@ -36,6 +37,7 @@ func (b *BaseApi) Captcha(c *gin.Context) {
}
var oc bool
fmt.Println(openCaptcha, interfaceToInt(v))
if openCaptcha == 0 || openCaptcha < interfaceToInt(v) {
oc = true
}