tracking: 调整多日行程导游或司机多安排的日期显示

feature/trippest
lyt 7 years ago
parent 3abfd13240
commit 9a3ac72ca1

@ -191,8 +191,12 @@ class Api extends CI_Controller {
$ret['operation'][$value->GCOD_startDate]['cardriver'][] = $tmp_car;
// 出团时间
$ret['operation'][$value->GCOD_startDate]['start_date'] = $value->GCOD_startDate;
if ( ! $ret['operation'][$value->GCOD_startDate]['end_date']
|| strtotime($ret['operation'][$value->GCOD_startDate]['end_date']) > strtotime($value->GCOD_endDate)
) {
$ret['operation'][$value->GCOD_startDate]['end_date'] = $value->GCOD_endDate;
}
}
else if ($value->GCOD_operationType === 'guiderOperations') {
$tmp_g = array();
$tmp_g['guide_name'] = $value->GCOD_dutyName;
@ -204,7 +208,11 @@ class Api extends CI_Controller {
$ret['operation'][$value->GCOD_startDate]['tourguide'][] = $tmp_g;
// 出团时间
$ret['operation'][$value->GCOD_startDate]['start_date'] = $value->GCOD_startDate;
$ret['operation'][$value->GCOD_startDate]['end_date'] = $value->GCOD_endDate;
if ( ! $ret['operation'][$value->GCOD_startDate]['end_date']
|| strtotime($ret['operation'][$value->GCOD_startDate]['end_date']) > strtotime($value->GCOD_endDate)
) {
$ret['operation'][$value->GCOD_startDate]['end_date']= $value->GCOD_endDate;
}
}
}
// 加上行程

Loading…
Cancel
Save