feat: add IPA download button to channel list (super admin only)

- data() returns ipa_url if public/channel/<id>/app.ipa exists
- Blade: warm-colored IPA button in ops column, super admin + has IPA only
- Click to download the built IPA directly
This commit is contained in:
hashbro
2026-10-06 06:51:59 +08:00
parent ba444a96b1
commit 630aeb2383
2 changed files with 5 additions and 1 deletions
@@ -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'),