Commit 2659bb12 authored by rlgy's avatar rlgy

bug fixed

parent ddcfa85e
......@@ -67,7 +67,9 @@ class InvestmentController extends BaseController
if ($model) {
try {
$model->delete();
} catch (\Exception|\Throwable $e) {
} catch (\Throwable $e) {
return ['code' => $e->getCode(), 'msg' => $e->getMessage()];
} catch (\Exception $e) {
return ['code' => $e->getCode(), 'msg' => $e->getMessage()];
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment