diff --git a/application/third_party/order/controllers/confirm.php b/application/third_party/order/controllers/confirm.php index a6a9177c..b9456889 100644 --- a/application/third_party/order/controllers/confirm.php +++ b/application/third_party/order/controllers/confirm.php @@ -83,7 +83,7 @@ class Confirm extends CI_Controller { $occupation=$this->input->post('occupation'); - $contact_phone = '座机:' . $this->input->post('landline') . '/手机:' . $this->input->post('mobile'); + $contact_phone = '手机:' . $this->input->post('mobile'); $COLI_SN = $this->input->post('COLI_SN'); $visitor_link = $this->input->post('visitor_link'); $COLI_ID = $this->input->post('COLI_ID'); @@ -130,6 +130,10 @@ class Confirm extends CI_Controller { $birthday_tmp = date('Y-m-d H:i:s', strtotime($birthday[$key])); $expiration_date_tmp = date('Y-m-d H:i:s', strtotime($expiration_date[$key])); + // 现在表单只用填写第一个客人的手机,所以其他客人 + if ($key > 0) { + $contact_phone = ''; + } $MEI_SN = $this->Order_model->add_customer_info($occupation[$key],$gender[$key], $nationality[$key], $MEI_FirstName, $MEI_LastName, $passport[$key], $expiration_date_tmp, $birthday_tmp, $MEI_Memo, $MEI_Street, '', $contact_phone, 0, $COLI_SN, $visitor_link,$MEI_ArrivalFlightNo,$MEI_ArrivalTime,$MEI_DepartureFlightNo,$MEI_DepartureTime); } }