add cache lock

This commit is contained in:
2025-09-17 10:55:19 +03:30
parent a78a4fdfdc
commit 5cf58efb6f
5 changed files with 45 additions and 5 deletions

View File

@@ -2,10 +2,14 @@
namespace App\Services;
use App\Exceptions\ProhibitedAction;
use Illuminate\Support\Facades\App;
class PaymentService
{
/**
* @throws ProhibitedAction
*/
public function invoiceBillApi($driver_national_code, $final_amount)
{
if (App::isProduction())
@@ -32,7 +36,7 @@ class PaymentService
return $response;
}
catch (\Throwable $th) {
abort(500);
throw new ProhibitedAction('خطا در ارتباط با سرویس پرداخت');
}
}
return 0;