From d151075dcbacd2267fcf5755ae888e01e51fee17 Mon Sep 17 00:00:00 2001 From: haptear Date: Wed, 23 Feb 2022 09:37:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 58tc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();