update
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user