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 }