Merge pull request #540 from shylocks/master

Master
This commit is contained in:
lxk0301
2021-01-06 22:43:37 +08:00
committed by GitHub
2 changed files with 193 additions and 3 deletions

190
jd_car_exchange.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -475,16 +475,16 @@ function followShop(shopId) {
} }
function enterRoom() { function enterRoom() {
return new Promise(resolve => { 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 host = `draw.jdfcloud.com`;
const reqSource = 'weapp'; const reqSource = 'weapp';
$.get(taskUrl(url, host, reqSource), (err, resp, data) => { $.post({...taskUrl(url, host, reqSource),body:'{}'}, (err, resp, data) => {
try { try {
if (err) { if (err) {
console.log('\n京东宠汪汪: API查询请求失败 ‼️‼️') console.log('\n京东宠汪汪: API查询请求失败 ‼️‼️')
} else { } else {
// console.log('JSON.parse(data)', JSON.parse(data)) // console.log('JSON.parse(data)', JSON.parse(data))
$.roomData = JSON.parse(data); $.roomData = JSON.parse(data);
console.log(`现有狗粮: ${$.roomData.data.petFood}\n`) console.log(`现有狗粮: ${$.roomData.data.petFood}\n`)