swag中id错误问题的修复 (#1589)
* model.go: fix swagger请求的id问题 * 验证码逻辑修回 --------- Co-authored-by: yang hao <1013055366@qq.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user