修复一些错误

This commit is contained in:
liu
2026-08-14 22:20:13 +08:00
parent 228212f8e3
commit 4bdaf2a219
12 changed files with 454 additions and 37 deletions
+4 -1
View File
@@ -95,7 +95,10 @@ class PaymentModel extends Model
if ($ids === []) {
return [];
}
$urls = SysFileModel::query()->whereIn('id', $ids)->pluck('preview_url', 'id');
$urls = [];
foreach (SysFileModel::query()->whereIn('id', $ids)->get() as $file) {
$urls[$file->id] = $file->preview_url;
}
$result = [];
foreach ($ids as $id) {
if (isset($urls[$id])) {