fix:bug解决

This commit is contained in:
李伊帆
2026-10-28 10:36:39 +08:00
parent c369127166
commit 91bca314ba
57 changed files with 2839 additions and 384 deletions

12
tmp-peek-product.mjs Normal file
View File

@@ -0,0 +1,12 @@
import fs from 'fs'
const s = fs.readFileSync('tmp-api-docs.json', 'utf8')
for (const k of ['productOptions', 'ProductOption', 'product/list', '/app/device/product', 'CzDeviceProduct', '产品型号']) {
let idx = 0
let n = 0
while (n < 6 && (idx = s.indexOf(k, idx)) !== -1) {
console.log('\n---', k, '@', idx)
console.log(s.slice(Math.max(0, idx - 40), idx + 500))
idx += k.length
n++
}
}