1
0
forked from x/icebergs
This commit is contained in:
harveyshao 2022-03-19 23:58:36 +08:00
parent c4fe0b8f4b
commit 1976d83a49
2 changed files with 13 additions and 2 deletions

View File

@ -140,6 +140,9 @@ func init() {
if len(arg) == 0 || m.Length() > 0 {
return
}
if len(arg) == 1 {
arg = kit.Split(arg[0])
}
_daemon_exec(m, _system_cmd(m, arg...))
}},
}})

View File

@ -107,7 +107,11 @@ func PrevPage(m *ice.Message, total string, arg ...string) {
m.ProcessHold()
return
}
m.ProcessRewrite("offend", offends)
if offends == 0 {
m.ProcessRewrite("offend", "")
} else {
m.ProcessRewrite("offend", offends)
}
}
func NextPage(m *ice.Message, total string, arg ...string) {
@ -118,7 +122,11 @@ func NextPage(m *ice.Message, total string, arg ...string) {
m.ProcessHold()
return
}
m.ProcessRewrite("offend", offends)
if offends == 0 {
m.ProcessRewrite("offend", "")
} else {
m.ProcessRewrite("offend", offends)
}
}
func NextPageLimit(m *ice.Message, total string, arg ...string) {
if kit.Int(kit.Select("0", arg, 1)) < 0 {