mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 22:45:29 +08:00
luci-app-jd-dailybonus: sync upstream (#7871)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
This commit is contained in:
parent
09bfdd0f63
commit
a3f095db4c
@ -4,14 +4,16 @@ PKG_NAME:=luci-app-jd-dailybonus
|
|||||||
PKG_VERSION:=1.0.5
|
PKG_VERSION:=1.0.5
|
||||||
PKG_RELEASE:=20210316
|
PKG_RELEASE:=20210316
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/conffiles
|
PKG_MAINTAINER:=jerrykuku <jerrykuku@qq.com>
|
||||||
/etc/config/jd-dailybonus
|
|
||||||
endef
|
|
||||||
|
|
||||||
LUCI_TITLE:=Luci for JD dailybonus Script
|
LUCI_TITLE:=Luci for JD dailybonus Script
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
LUCI_DEPENDS:=+node +uclient-fetch +lua +libuci-lua
|
LUCI_DEPENDS:=+node +uclient-fetch +lua +libuci-lua
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/conffiles
|
||||||
|
/etc/config/jd-dailybonus
|
||||||
|
endef
|
||||||
|
|
||||||
include $(TOPDIR)/feeds/luci/luci.mk
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||||||
|
|
||||||
# call BuildPackage - OpenWrt buildroot signature
|
# call BuildPackage - OpenWrt buildroot signature
|
||||||
|
@ -16,6 +16,11 @@ o = s:option(DummyValue, '', '')
|
|||||||
o.rawhtml = true
|
o.rawhtml = true
|
||||||
o.template = 'jd-dailybonus/cookie_tools'
|
o.template = 'jd-dailybonus/cookie_tools'
|
||||||
|
|
||||||
|
o = s:option(DynamicList, "jrBody", translate('金融 POST Body'))
|
||||||
|
o.rmempty = false
|
||||||
|
o.default = ''
|
||||||
|
o.description = translate('京东金融签到 POST Body(以reqData=开头),与上方的Cookies列表一一对应,没有可不填(可能导致京东金融签到失败)')
|
||||||
|
|
||||||
o = s:option(Value, 'stop', translate('延迟签到'))
|
o = s:option(Value, 'stop', translate('延迟签到'))
|
||||||
o.rmempty = false
|
o.rmempty = false
|
||||||
o.default = 0
|
o.default = 0
|
||||||
|
@ -19,6 +19,10 @@ for i, v in pairs( uci:get('jd-dailybonus', '@global[0]', 'Cookies') or {} ) do
|
|||||||
table.insert(data.CookiesJD, {["cookie"]=v})
|
table.insert(data.CookiesJD, {["cookie"]=v})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for i, v in pairs( uci:get('jd-dailybonus', '@global[0]', 'jrBody') or {} ) do
|
||||||
|
data.CookiesJD[i]["jrBody"]=v
|
||||||
|
end
|
||||||
|
|
||||||
data.CookiesJD = json.stringify( data.CookiesJD )
|
data.CookiesJD = json.stringify( data.CookiesJD )
|
||||||
|
|
||||||
write_json('/usr/share/jd-dailybonus/CookieSet.json', data)
|
write_json('/usr/share/jd-dailybonus/CookieSet.json', data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user