Browse Source

修复缺陷

main
haptear 3 years ago
parent
commit
d151075dcb
  1. 8
      58tc.js

8
58tc.js

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

Loading…
Cancel
Save