// let imgName = '027-1.jpg'
// let template = `{"images":[{"status":"finished","name":"${imageName}","size":506163,"percentage":100,"uid":1733729088043,"showProgress":false,"response":{"success":true,"message":"success","code":200,"timestamp":1733729089000,"result":"${imageName}"},"url":"${imageName}"}],"规格":"只"}`
let result = []
for(let i = 1; i<=236; i++){
let imageName = getImgeName(i)
let template = `{"images":[{"status":"finished","name":"${imageName}","size":506163,"percentage":100,"uid":1733729088043,"showProgress":false,"response":{"success":true,"message":"success","code":200,"timestamp":1733729089000,"result":"${imageName}"},"url":"${imageName}"}],"规格":"只"}`
result.push(template)
}
console.log(result.join('\n'))
console.log('===============================')
function getImgeName(num){
if(num < 10){
return `0000m20241209/00${num}-1.jpg`
}
if(num < 100){
return `0000m20241209/0${num}-1.jpg`
}
return `0000m20241209/${num}-1.jpg`
}
console