文件
fenleixinxi/tmp_img/check_need.ps1
MiAn 133d425ec0 feat: 新增阿里云OSS适配器及分类图标优化
- 新增阿里云OSS SDK核心类库文件
- 新增OSS插件配置文件及钩子监听
- 新增分类图标SVG资源并优化为轻量化格式
- 替换定位接口为天地图逆地理编码接口
- 新增OSS图片缩略处理工具方法
2026-11-20 11:11:03 +08:00

21 行
820 B
PowerShell

$json = Get-Content 'D:\Softwares\phpstudy_pro\WWW\fenleixinxi\tmp_img\prompt_map.json' -Raw | ConvertFrom-Json
Write-Host "Total items in JSON: $($json.Count)"
$needGen = @()
foreach ($item in $json) {
$localPath = $item.path -replace '/', '\\'
if (Test-Path $localPath) {
$size = (Get-Item $localPath).Length
if ($size -le 10240) {
Write-Host "TOO SMALL: $($item.id) - $($item.name) size=$size"
$needGen += $item
}
} else {
Write-Host "MISSING: $($item.id) - $($item.name)"
$needGen += $item
}
}
Write-Host ""
Write-Host "Need to generate: $($needGen.Count)"
Write-Host "Already OK (skip): $($json.Count - $needGen.Count)"
$needGen | ConvertTo-Json -Depth 5 | Set-Content 'D:\Softwares\phpstudy_pro\WWW\fenleixinxi\tmp_img\need_gen.json'