|
|
@ -3482,7 +3482,6 @@ class InsurerController extends BaseController |
|
|
|
$this->getGift(0, $gift_id, $order_info->car_no, $order_info, $order_gift_id); |
|
|
|
$this->getGift(0, $gift_id, $order_info->car_no, $order_info, $order_gift_id); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
echo time(); |
|
|
|
|
|
|
|
$order_info->gift_status = 1; |
|
|
|
$order_info->gift_status = 1; |
|
|
|
if(!$order_info->save()) { |
|
|
|
if(!$order_info->save()) { |
|
|
|
throw new \Exception(print_r($order_info->getErrors(), true)); |
|
|
|
throw new \Exception(print_r($order_info->getErrors(), true)); |
|
|
@ -3492,6 +3491,7 @@ class InsurerController extends BaseController |
|
|
|
|
|
|
|
|
|
|
|
$tran->commit(); |
|
|
|
$tran->commit(); |
|
|
|
} catch (\Exception $e) { |
|
|
|
} catch (\Exception $e) { |
|
|
|
|
|
|
|
var_dump($e->getTrace()); |
|
|
|
$tran->rollBack(); |
|
|
|
$tran->rollBack(); |
|
|
|
$result['msg'] = $e->getMessage(); |
|
|
|
$result['msg'] = $e->getMessage(); |
|
|
|
} |
|
|
|
} |
|
|
|