From 84f799342d3a375eeacfecc26df813a7d6e38732 Mon Sep 17 00:00:00 2001 From: QxQ Date: Mon, 14 Jan 2019 10:13:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=80=B2=E5=A0=B4=E5=BB=B6?= =?UTF-8?q?=E5=BE=8C=E6=99=82=E9=96=93=E7=95=B0=E5=B8=B8=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/Cars_model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/models/Cars_model.php b/models/Cars_model.php index 8ea8dc2..b7795b0 100644 --- a/models/Cars_model.php +++ b/models/Cars_model.php @@ -389,6 +389,7 @@ class Cars_model extends CI_Model if(isset($parms['free_time']) && $parms['free_time'] > 0) { $data['out_before_time'] = date('Y-m-d H:i:s', strtotime(" + {$parms['free_time']} minutes",strtotime($parms['in_time']))); + if($data['out_before_time'] < $data['in_time']) { $data['out_before_time']=$data['in_time'];