first commit

This commit is contained in:
admin committed 2026-11-05 15:16:24 +08:00
commit 9399a88d39
347 files changed
+167716

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
(async () => {
const out = { cfg: null, tries: [] };
try { out.cfg = JSON.parse(JSON.stringify(lib.mtop.config || {})); } catch { out.cfg = String(lib.mtop.config); }
out.mtopKeys = Object.keys(lib.mtop);
const call = async (label, opts) => {
try {
const r = await lib.mtop.request(Object.assign({
api: 'mtop.alibaba.idle.seller.pc.datacompass.item.list',
v: '1.0', type: 'POST', dataType: 'json',
data: { tabType: 'all', dateRange: '', ms: '', dateType: 'recent7d', categoryInfoStr: '[]', itmName: '', itmId: '', isDpStk: '', mktActId: '', page: 1, pageSize: 3 },
}, opts));
const d = r && r.data && r.data.data;
out.tries.push({ label, ok: true, ret: r && r.ret, listLen: d && d.list && d.list.length, total: d && d.total });
} catch (e) {
let info = null; try { info = JSON.parse(JSON.stringify(e)); } catch { }
out.tries.push({ label, ok: false, ret: e && e.ret, errMsg: info && info.data && info.data.errorMsg });
}
};
await call('ext_querys-plain', { ext_querys: 'accountSite=xianyu' });
await call('ext_querys-amp', { ext_querys: '&accountSite=xianyu' });
await call('option-accountSite', { accountSite: 'xianyu' });
await call('both', { accountSite: 'xianyu', ext_querys: 'accountSite=xianyu&spm_cnt=a21ybx.home.0.0' });
return out;
})()