From fbc73e040f61d051cb6ecb04f8fd05f57f275c8d Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Tue, 13 Dec 2022 11:03:48 +0800 Subject: [PATCH] fix billplz bill status --- routes/web.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index 64c6398b..f71292e9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -630,8 +630,12 @@ Route::get('/billplz/fix', function(){ $packingList = $payment->owner->owner; if(app()->environment('production')){ - (App()->make(UpdateDoFromVTPortalProcessor::class))->execute($packingList); - (App()->make(UpdateDoFromYDPortalProcessor::class))->execute($packingList); + try { + (App()->make(UpdateDoFromVTPortalProcessor::class))->execute($packingList); + (App()->make(UpdateDoFromYDPortalProcessor::class))->execute($packingList); + } catch (\Exception $exception){ + echo '
Malformed Address: '.$orderNumber.'
'; + } } } }else{