mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00: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_RELEASE:=20210316
|
||||
|
||||
define Package/$(PKG_NAME)/conffiles
|
||||
/etc/config/jd-dailybonus
|
||||
endef
|
||||
PKG_MAINTAINER:=jerrykuku <jerrykuku@qq.com>
|
||||
|
||||
LUCI_TITLE:=Luci for JD dailybonus Script
|
||||
LUCI_PKGARCH:=all
|
||||
LUCI_DEPENDS:=+node +uclient-fetch +lua +libuci-lua
|
||||
|
||||
define Package/$(PKG_NAME)/conffiles
|
||||
/etc/config/jd-dailybonus
|
||||
endef
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
@ -16,6 +16,11 @@ o = s:option(DummyValue, '', '')
|
||||
o.rawhtml = true
|
||||
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.rmempty = false
|
||||
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})
|
||||
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 )
|
||||
|
||||
write_json('/usr/share/jd-dailybonus/CookieSet.json', data)
|
||||
|
Loading…
Reference in New Issue
Block a user