luci-app-jd-dailybonus: sync with upstream source
This commit is contained in:
parent
e651c10a46
commit
950e58f6e2
@ -7,8 +7,8 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
PKG_NAME:=luci-app-jd-dailybonus
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=0.8
|
||||
PKG_RELEASE:=20200715
|
||||
PKG_VERSION:=0.8.1
|
||||
PKG_RELEASE:=20200716
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
||||
@ -4,6 +4,18 @@
|
||||
#
|
||||
########################################################
|
||||
|
||||
########################################################
|
||||
//
|
||||
// 0.8.1 2020-07-16
|
||||
//
|
||||
//
|
||||
########################################################
|
||||
|
||||
|
||||
Updates
|
||||
|
||||
- UPDATE: 修正部分cookie无法更新到脚本的问题。
|
||||
|
||||
########################################################
|
||||
//
|
||||
// 0.8 2020-07-15
|
||||
|
||||
@ -55,13 +55,19 @@ fill_cookie() {
|
||||
cookie1=$(uci_get_by_type global cookie)
|
||||
if [ ! "$cookie1" = "" ]; then
|
||||
varb="var Key = '$cookie1';"
|
||||
sed -i "s/^var Key =.*/$varb/g" $JD_SCRIPT
|
||||
a=$(sed -n '/var Key =/=' $JD_SCRIPT)
|
||||
b=$((a-1))
|
||||
sed -i "${a}d" $JD_SCRIPT
|
||||
sed -i "${b}a ${varb}" $JD_SCRIPT
|
||||
fi
|
||||
|
||||
cookie2=$(uci_get_by_type global cookie2)
|
||||
if [ ! "$cookie2" = "" ]; then
|
||||
varb2="var DualKey = '$cookie2';"
|
||||
sed -i "s/^var DualKey =.*/$varb2/g" $JD_SCRIPT
|
||||
aa=$(sed -n '/var DualKey =/=' $JD_SCRIPT)
|
||||
bb=$((aa-1))
|
||||
sed -i "${aa}d" $JD_SCRIPT
|
||||
sed -i "${bb}a ${varb2}" $JD_SCRIPT
|
||||
fi
|
||||
|
||||
stop=$(uci_get_by_type global stop)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user