From 4df920eea077924754078e2e06af2d31b1783a3f Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Tue, 5 Nov 2019 22:08:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A4=BC=E5=88=B8=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E6=97=B6=EF=BC=8C=E7=A1=AE=E8=AE=A4=E7=A4=BC=E5=93=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/InsurerController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/controllers/InsurerController.php b/frontend/controllers/InsurerController.php index f0ced76..4726329 100644 --- a/frontend/controllers/InsurerController.php +++ b/frontend/controllers/InsurerController.php @@ -3491,7 +3491,7 @@ class InsurerController extends BaseController $tran->commit(); } catch (\Exception $e) { - var_dump($e->getTrace()); +// var_dump($e->getTrace()); $tran->rollBack(); $result['msg'] = $e->getMessage(); } @@ -3609,6 +3609,9 @@ class InsurerController extends BaseController ->save(Yii::getAlias($imgstr)); } elseif ($gift_info && $gift_info->type_id == 2) { + if($gift_info->original_img == '') { + throw new \Exception('礼券文件不存在'); + } $liquanSrc = '@frontend/web' . $gift_info->original_img; \yii\imagine\Image::thumbnail($liquanSrc, 1097, 979) ->save(Yii::getAlias($imgstr),