1. 避免程序非正常中断时进程残留
2. 在线列表和日志页面样式更改,以适合不同主题
3. debug
This commit is contained in:
tty228 2024-07-11 23:07:17 +08:00
parent 5b3b88d8ea
commit 86da29ba4d
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-wechatpush
PKG_VERSION:=3.5.4
PKG_VERSION:=3.5.5
PKG_RELEASE:=
PKG_MAINTAINER:=tty228 <tty228@yeah.net>

View File

@ -1396,7 +1396,7 @@ up() {
else
# 剔除(重置)流量数据
usage down ${ip}
# 删除当前 IP 对应的键值,重新写入,否则要启用 unique_by(.ip) 去重
# 删除当前 IP 对应的键值,重新写入,否则要启用 unique_by(.ip) 去重
jq --arg ip "$ip" 'del(.devices[] | select(.ip == $ip))' "$devices_json" >"$tmp_devices_json" && mv "$tmp_devices_json" "$devices_json"
local name=$(getname "$ip" "$mac")
local interface=$(getinterface "ip" "$mac")