owners_902_2
This commit is contained in:
@@ -174,7 +174,7 @@ class Owners extends HD_Controller
|
||||
'car_num' => $val['car_num'],
|
||||
'order_time' => $val['order_time'] != '0000-00-00 00:00:00' ? $val['order_time'] : '',
|
||||
'ck_time' => $val['ck_time'] != '0000-00-00 00:00:00' ? $val['ck_time'] : '',
|
||||
'u_time' => $val['u_time'],
|
||||
'u_time' => $val['u_time'] != '0000-00-00 00:00:00' ? $val['u_time'] : '',
|
||||
'status_name' => $statusAry[$val['status']]
|
||||
];
|
||||
}
|
||||
|
||||
@@ -234,9 +234,11 @@ class Liche extends HD_Controller
|
||||
}
|
||||
$re = $this->mdOwners->get(['o_id' => $value['id']]);
|
||||
if ($re) {
|
||||
$data['u_time'] = $re['u_time'];
|
||||
$this->mdOwners->update($data, ['id' => $re['id']]);
|
||||
} else {
|
||||
$data['c_time'] = time();
|
||||
$data['u_time'] = '0000-00-00 00:00:00';
|
||||
$id = $this->mdOwners->add($data);
|
||||
if ($id && $params['rds']) {
|
||||
$log[] = ['id' => $id, 'name' => $data['name'], 'mobile' => $data['mobile']];
|
||||
|
||||
Reference in New Issue
Block a user