mirror of
https://github.com/chinnkarahoi/jd_scripts.git
synced 2024-06-05 19:32:47 +08:00
update
This commit is contained in:
parent
d44cfcd1c3
commit
d6a14663b6
@ -85,9 +85,9 @@ async function jdDreamFactory() {
|
||||
|
||||
|
||||
// 收取发电机的电力
|
||||
function collectElectricity(help = false) {
|
||||
function collectElectricity(facId = factoryId, help = false) {
|
||||
return new Promise(async resolve => {
|
||||
const url = `/dreamfactory/generator/CollectCurrentElectricity?zone=dream_factory&apptoken=&pgtimestamp=&phoneID=&factoryid=${factoryId}&doubleflag=1&sceneval=2&g_login_type=1`;
|
||||
const url = `/dreamfactory/generator/CollectCurrentElectricity?zone=dream_factory&apptoken=&pgtimestamp=&phoneID=&factoryid=${facId}&doubleflag=1&sceneval=2&g_login_type=1`;
|
||||
|
||||
$.get(taskurl(url), (err, resp, data) => {
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user