fix: update DoubleRotate to match new signature with all parameters
This commit is contained in:
@@ -227,13 +227,21 @@ func (h *CaptchaHandler) DoubleRotate(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
angle, err := h.handler.DoubleRotate(req.InsideBase64, req.OutsideBase64)
|
||||
result, err := h.handler.DoubleRotate(
|
||||
req.InsideBase64,
|
||||
req.OutsideBase64,
|
||||
req.CheckPixel,
|
||||
req.SpeedRatio,
|
||||
req.Grayscale,
|
||||
req.Anticlockwise,
|
||||
req.CutPixelValue,
|
||||
)
|
||||
if err != nil {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, model.CaptchaResult{Result: angle})
|
||||
c.JSON(http.StatusOK, model.CaptchaResult{Result: result.Angle})
|
||||
}
|
||||
|
||||
// 图标检测
|
||||
|
||||
Reference in New Issue
Block a user