芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Http/Middleware/CheckUserSuspended.php
helper = new Common(); } public function handle($request, Closure $next) { // if user suspended can't do any transactions $user = $this->helper->getUserStatus(auth()->user()->status); if ($user == 'Suspended') { $prefix = str_replace('/', '', request()->route()->getPrefix()); if (str_contains($prefix, 'apiv2')) { return $this->badRequestResponse([], __("Suspended")); } return redirect('check-user-status'); } return $next($request); } }