diff --git a/58tc.js b/58tc.js index b095e44..ba07d6d 100644 --- a/58tc.js +++ b/58tc.js @@ -248,11 +248,11 @@ class UserInfo { async houseClean () { let furnitureId = await this.houseGetCleanId(); while (furnitureId != '0') { - url = `https://lovely-house.58.com/housework/clean` - body = `furnitureId=${index}` - urlObject = populateUrlObject(url, this.cookie, body) + let url = `https://lovely-house.58.com/housework/clean` + let body = `furnitureId=${index}` + let urlObject = populateUrlObject(url, this.cookie, body) await httpRequest('post', urlObject) - result = httpResult; + let result = httpResult; //if(result.code == 0) //break; furnitureId = await houseGetCleanId();