mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-04-29 19:07:07 +00:00
Compare commits
1 commit
c57e3b021e
...
3ff740b4d2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ff740b4d2 |
3 changed files with 3 additions and 4 deletions
|
|
@ -144,7 +144,7 @@
|
||||||
return this.app.subUrl;
|
return this.app.subUrl;
|
||||||
},
|
},
|
||||||
happUrl() {
|
happUrl() {
|
||||||
return `happ://add/${this.app.subUrl}`;
|
return `happ://add/${encodeURIComponent(this.app.subUrl)}`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -206,7 +206,7 @@
|
||||||
<a-menu-item key="android-npvtunnel" @click="copy(app.subUrl)">NPV
|
<a-menu-item key="android-npvtunnel" @click="copy(app.subUrl)">NPV
|
||||||
Tunnel</a-menu-item>
|
Tunnel</a-menu-item>
|
||||||
<a-menu-item key="android-happ"
|
<a-menu-item key="android-happ"
|
||||||
@click="open('happ://add/' + app.subUrl)">Happ</a-menu-item>
|
@click="open('happ://add/' + encodeURIComponent(app.subUrl))">Happ</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"html"
|
|
||||||
"io"
|
"io"
|
||||||
"math/big"
|
"math/big"
|
||||||
"net"
|
"net"
|
||||||
|
|
@ -652,7 +651,7 @@ func (t *Tgbot) answerCommand(message *telego.Message, chatId int64, isAdmin boo
|
||||||
msg += t.I18nBot("tgbot.commands.help")
|
msg += t.I18nBot("tgbot.commands.help")
|
||||||
msg += t.I18nBot("tgbot.commands.pleaseChoose")
|
msg += t.I18nBot("tgbot.commands.pleaseChoose")
|
||||||
case "start":
|
case "start":
|
||||||
msg += t.I18nBot("tgbot.commands.start", "Firstname=="+html.EscapeString(message.From.FirstName))
|
msg += t.I18nBot("tgbot.commands.start", "Firstname=="+message.From.FirstName)
|
||||||
if isAdmin {
|
if isAdmin {
|
||||||
msg += t.I18nBot("tgbot.commands.welcome", "Hostname=="+hostname)
|
msg += t.I18nBot("tgbot.commands.welcome", "Hostname=="+hostname)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue