|
|
@ -3491,7 +3491,7 @@ class InsurerController extends BaseController |
|
|
|
|
|
|
|
|
|
|
|
$tran->commit(); |
|
|
|
$tran->commit(); |
|
|
|
} catch (\Exception $e) { |
|
|
|
} catch (\Exception $e) { |
|
|
|
var_dump($e->getTrace()); |
|
|
|
// var_dump($e->getTrace()); |
|
|
|
$tran->rollBack(); |
|
|
|
$tran->rollBack(); |
|
|
|
$result['msg'] = $e->getMessage(); |
|
|
|
$result['msg'] = $e->getMessage(); |
|
|
|
} |
|
|
|
} |
|
|
@ -3609,6 +3609,9 @@ class InsurerController extends BaseController |
|
|
|
->save(Yii::getAlias($imgstr)); |
|
|
|
->save(Yii::getAlias($imgstr)); |
|
|
|
|
|
|
|
|
|
|
|
} elseif ($gift_info && $gift_info->type_id == 2) { |
|
|
|
} elseif ($gift_info && $gift_info->type_id == 2) { |
|
|
|
|
|
|
|
if($gift_info->original_img == '') { |
|
|
|
|
|
|
|
throw new \Exception('礼券文件不存在'); |
|
|
|
|
|
|
|
} |
|
|
|
$liquanSrc = '@frontend/web' . $gift_info->original_img; |
|
|
|
$liquanSrc = '@frontend/web' . $gift_info->original_img; |
|
|
|
\yii\imagine\Image::thumbnail($liquanSrc, 1097, 979) |
|
|
|
\yii\imagine\Image::thumbnail($liquanSrc, 1097, 979) |
|
|
|
->save(Yii::getAlias($imgstr), |
|
|
|
->save(Yii::getAlias($imgstr), |
|
|
|