| 1234567891011121314151617181920212223242526 |
- const headers = {
- 'X-Parse-Application-Id': 'ncloudmaster',
- 'X-Parse-Master-Key': 'SnkK12*&sunq2#@20!'
- };
- const BASE = 'https://server.fmode.cn/parse/classes';
- (async () => {
- // 1. 查看旧记录 ZXI7y9lVLt 的完整数据
- console.log('=== APIGAuth ZXI7y9lVLt ===');
- const r1 = await fetch(BASE + '/APIGAuth/ZXI7y9lVLt', { headers });
- const d1 = await r1.json();
- console.log(JSON.stringify(d1, null, 2));
- // 2. 模拟回退查询:只按 api 查(不带 user)
- const apigId = d1.api?.objectId || 'Vu33KNB0y';
- console.log('\n=== Fallback: query by api only (order: -count) ===');
- const w = JSON.stringify({ api: { __type: 'Pointer', className: 'APIG', objectId: apigId } });
- const r2 = await fetch(BASE + '/APIGAuth?where=' + encodeURIComponent(w) + '&order=-count&limit=10', { headers });
- const d2 = await r2.json();
- console.log('found:', d2.results?.length);
- (d2.results || []).forEach(r => console.log(
- r.objectId, '| count:', r.count, '| used:', r.used,
- '| user:', r.user?.objectId || '-',
- '| company:', r.company?.objectId || '-'
- ));
- })();
|