-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwsgw.sgmodule
More file actions
15 lines (12 loc) · 1.39 KB
/
Copy pathwsgw.sgmodule
File metadata and controls
15 lines (12 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!name= 网上国网
#!desc= 余量查询
#!author= 𝐎𝐍𝐙𝟑𝐕,Primovist修改
#!category= 组件服务
#!channel= https://t.me/onz3v_channel
#!arguments= INFORM:"#",CRONEXP:"0 9 * * *",USERNAME:"",PASSWORD:"",调试模式:false,近期用量:false,通知全部户号:false,TIMEOUT:60
#!arguments-desc= CRONEXP: 默认每天9点执行, 只想用接口可以设置成"0 0 30 2 *"\n\nUSERNAME: "https://95598.cn" 或 "网上国网App"的登录账号\n\nPASSWORD: "https://95598.cn" 或 "网上国网App"的登录密码\n\nINFORM: 填写#代表禁用通知\n\n调试模式: 设置true/1代表开启调试模式\n\n近期用量: 设置true/1代表开启近期用量\n\n通知全部户号: 设置true/1代表开启通知全部户号\n\nTIMEOUT: 脚本运行最大时间
[Script]
接口重写 = type=http-request, pattern=^https?:\/\/api\.wsgw-rewrite\.com\/electricity\/bill\/all, script-path=https://raw.githubusercontent.com/Yuheng0101/X/main/Tasks/95598/95598.js, requires-body=true, max-size=-1, timeout={{{TIMEOUT}}}
{{{INFORM}}}网上国网 = type=cron, cronexp="{{{CRONEXP}}}", script-path=https://raw.githubusercontent.com/Yuheng0101/X/main/Tasks/95598/95598.js, timeout={{{TIMEOUT}}},argument=username="{{{USERNAME}}}"&password="{{{PASSWORD}}}"&debug="{{{调试模式}}}"&show_recent_usage="{{{近期用量}}}"¬ify_all_accounts="{{{通知全部户号}}}"
[MITM]
hostname = %APPEND% api.wsgw-rewrite.com