From 630aeb2383fa0342e0823790deff8a09efc79473 Mon Sep 17 00:00:00 2001 From: hashbro Date: Tue, 6 Oct 2026 06:51:59 +0800 Subject: [PATCH] feat: add IPA download button to channel list (super admin only) - data() returns ipa_url if public/channel//app.ipa exists - Blade: warm-colored IPA button in ops column, super admin + has IPA only - Click to download the built IPA directly --- app/Http/Controllers/Admin/ChannelController.php | 1 + resources/views/admin/channels/index.blade.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/ChannelController.php b/app/Http/Controllers/Admin/ChannelController.php index a52a9d4..bfe188a 100644 --- a/app/Http/Controllers/Admin/ChannelController.php +++ b/app/Http/Controllers/Admin/ChannelController.php @@ -88,6 +88,7 @@ class ChannelController extends Controller 'app_name' => $c->app_name ?: '', 'bundle_id' => $c->bundle_id ?: '', 'h5_url' => $c->h5_url ?: '', + 'ipa_url' => file_exists(public_path('channel/'.$c->channel_id.'/app.ipa')) ? '/channel/'.$c->channel_id.'/app.ipa' : '', 'links' => $c->supportLinks(), 'landing_path' => $c->landingPath(), 'created_at' => optional($c->created_at)->format('Y-m-d H:i:s'), diff --git a/resources/views/admin/channels/index.blade.php b/resources/views/admin/channels/index.blade.php index ad01818..f65ae27 100644 --- a/resources/views/admin/channels/index.blade.php +++ b/resources/views/admin/channels/index.blade.php @@ -35,6 +35,9 @@