...
|
...
|
@@ -385,6 +385,14 @@ class Yuyue extends Api |
|
|
/*更改预约单状态*/
|
|
|
Db::name('yuyue')->where('id', $Params['id'])->update($data);
|
|
|
/*新增数据*/
|
|
|
//飞行种类:0=训练,1=机长,2=单飞
|
|
|
if ($Params['fly_type'] == '训练') {
|
|
|
$Params['fly_type'] = 0;
|
|
|
} else if ($Params['fly_type'] == '机长') {
|
|
|
$Params['fly_type'] = 1;
|
|
|
} else if ($Params['fly_type'] == '单飞') {
|
|
|
$Params['fly_type'] = 2;
|
|
|
}
|
|
|
$NewAdd = [
|
|
|
'name' => (isset($Params['name'])) ? $Params['name'] : '',
|
|
|
'work' => (isset($Params['work'])) ? $Params['work'] : '',
|
...
|
...
|
@@ -397,7 +405,7 @@ class Yuyue extends Api |
|
|
'json' => (isset($Params['json'])) ? $Params['json'] : '',
|
|
|
'airplane_type' => (isset($Params['airplane_type'])) ? $Params['airplane_type'] : '',
|
|
|
'airplane_number' => (isset($Params['airplane_number'])) ? $Params['airplane_number'] : '',
|
|
|
'fly_type' => (isset($Params['fly_type'])) ? $Params['fly_type'] : '',
|
|
|
'fly_type' => $Params['fly_type'],
|
|
|
'teacher_name' => (isset($Params['teacher_name'])) ? $Params['teacher_name'] : '',
|
|
|
'beizhu' => (isset($Params['beizhu'])) ? $Params['beizhu'] : '',
|
|
|
'updatetime' => time()
|
...
|
...
|
|