This commit is contained in:
Дмитрий Саенко 2025-10-23 18:21:22 +03:00
parent 95a06100af
commit f8c2e90e44
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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
}