mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-11-29 02:42:51 +00:00
fix any
This commit is contained in:
parent
95a06100af
commit
f8c2e90e44
2 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ func (a *InboundController) addInbound(c *gin.Context) {
|
||||||
inbound := &model.Inbound{}
|
inbound := &model.Inbound{}
|
||||||
err := c.ShouldBind(inbound)
|
err := c.ShouldBind(inbound)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
jsonMsg(c, I18nWeb(c, "pages.inbounds.toasts.inboundCreateSuccess"), err)
|
jsonMsg(c, I18nWeb(c, "somethingWentWrong"), err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
user := session.GetLoginUser(c)
|
user := session.GetLoginUser(c)
|
||||||
|
|
|
||||||
|
|
@ -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
|
// 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
|
// 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.
|
// 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
|
return needRestart, db.Delete(model.Inbound{}, id).Error
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue