- 新增阿里云OSS SDK核心类库文件 - 新增OSS插件配置文件及钩子监听 - 新增分类图标SVG资源并优化为轻量化格式 - 替换定位接口为天地图逆地理编码接口 - 新增OSS图片缩略处理工具方法
23 行
721 B
PowerShell
23 行
721 B
PowerShell
$items = Get-Content 'D:\Softwares\phpstudy_pro\WWW\fenleixinxi\tmp_img\mcp_items.json' -Raw | ConvertFrom-Json
|
|
$downloadedDir = 'D:\Softwares\phpstudy_pro\WWW\fenleixinxi\tmp_img\downloaded'
|
|
|
|
$done = @()
|
|
$pending = @()
|
|
foreach ($item in $items) {
|
|
$jpgPath = Join-Path $downloadedDir ($item.id + '.jpg')
|
|
if (Test-Path $jpgPath) {
|
|
$done += $item
|
|
} else {
|
|
$pending += $item
|
|
}
|
|
}
|
|
|
|
Write-Host "Done: $($done.Count) / $($items.Count)"
|
|
Write-Host "Pending: $($pending.Count)"
|
|
Write-Host ""
|
|
Write-Host "Pending IDs:"
|
|
Write-Host ($pending.id -join ', ')
|
|
|
|
# Save pending for reference
|
|
$pending | ConvertTo-Json -Depth 3 | Set-Content 'D:\Softwares\phpstudy_pro\WWW\fenleixinxi\tmp_img\pending.json'
|