@@ -172,7 +172,7 @@ class Withdraw extends Controller
return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
} catch (Exception $e) {
DB::rollBack();
- return $this->error(intval($e->getCode()), $e->getMessage());
+ return $this->error($e->getCode(), $e->getMessage());
}
return $this->success();