|
@@ -1263,9 +1263,18 @@
|
|
|
credentials: 'omit',
|
|
credentials: 'omit',
|
|
|
headers: { Accept: 'application/json' }
|
|
headers: { Accept: 'application/json' }
|
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
|
- alert(res.json)
|
|
|
|
|
- if (!res.ok) throw new Error('HTTP ' + res.status);
|
|
|
|
|
- return res.json();
|
|
|
|
|
|
|
+ return res.json().then(function (data) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ alert(
|
|
|
|
|
+ 'getWxConfig HTTP ' +
|
|
|
|
|
+ res.status +
|
|
|
|
|
+ '\n' +
|
|
|
|
|
+ JSON.stringify(data, null, 2)
|
|
|
|
|
+ );
|
|
|
|
|
+ } catch (alertErr) {}
|
|
|
|
|
+ if (!res.ok) throw new Error('HTTP ' + res.status);
|
|
|
|
|
+ return data;
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|