From f8c2e90e44f1085d5ca0fe95edd4e21bfa2aac9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Thu, 23 Oct 2025 18:21:22 +0300 Subject: [PATCH] fix any --- web/controller/inbound.go | 2 +- web/service/inbound.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/controller/inbound.go b/web/controller/inbound.go index d46b3684..262a52dd 100644 --- a/web/controller/inbound.go +++ b/web/controller/inbound.go @@ -106,7 +106,7 @@ func (a *InboundController) addInbound(c *gin.Context) { inbound := &model.Inbound{} err := c.ShouldBind(inbound) if err != nil { - jsonMsg(c, I18nWeb(c, "pages.inbounds.toasts.inboundCreateSuccess"), err) + jsonMsg(c, I18nWeb(c, "somethingWentWrong"), err) return } user := session.GetLoginUser(c) diff --git a/web/service/inbound.go b/web/service/inbound.go index 05628d81..8160e1d3 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -371,7 +371,7 @@ func (s *InboundService) DelInbound(id int) (bool, error) { // The reason why we pass an empty string as the third parameter is that the third parameter // is used to specify the HTTP body of the request, but in this case, we don't need to send // any body in the request. - s.syncWithSlaves("POST", "panel/api/inbounds/del/:id", "", nil, nil, strconv.Itoa(id)) // + s.syncWithSlaves("POST", "panel/api/inbounds/del", "", nil, nil, strconv.Itoa(id)) // return needRestart, db.Delete(model.Inbound{}, id).Error }