fix elq update try catch

This commit is contained in:
Tokumeikoi
2020-03-17 14:28:47 +08:00
parent 7bb4852cca
commit 96f562a9e7
8 changed files with 33 additions and 12 deletions

View File

@ -59,7 +59,9 @@ class OrderController extends Controller
abort(500, '订单不存在');
}
if (!$order->update($updateData)) {
try {
$order->update($updateData);
} catch (\Exception $e) {
abort(500, '更新失败');
}