From 527a9734a3138f6436215e5910ad7ae67cc66d17 Mon Sep 17 00:00:00 2001 From: any Date: Wed, 6 Jan 2021 22:33:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_joy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jd_joy.js b/jd_joy.js index 84252778..1a204b24 100644 --- a/jd_joy.js +++ b/jd_joy.js @@ -475,16 +475,16 @@ function followShop(shopId) { } function enterRoom() { return new Promise(resolve => { - const url = `${weAppUrl}/enterRoom?reqSource=weapp`; + const url = `${weAppUrl}/enterRoom/h5?reqSource=weapp&invitePin=&openId=`; const host = `draw.jdfcloud.com`; const reqSource = 'weapp'; - $.get(taskUrl(url, host, reqSource), (err, resp, data) => { + $.post({...taskUrl(url, host, reqSource),body:'{}'}, (err, resp, data) => { try { if (err) { console.log('\n京东宠汪汪: API查询请求失败 ‼️‼️') } else { // console.log('JSON.parse(data)', JSON.parse(data)) - + $.roomData = JSON.parse(data); console.log(`现有狗粮: ${$.roomData.data.petFood}\n`)