合并区号和手机号保存

master
Jimmy Liow 1 year ago
parent 5aac2e3387
commit 8d282612a8

@ -80,10 +80,11 @@ class Confirm extends CI_Controller {
$passport = $this->input->post('passport'); $passport = $this->input->post('passport');
$expiration_date = $this->input->post('passport_expiration_date'); $expiration_date = $this->input->post('passport_expiration_date');
$nationality = $this->input->post('nationality'); $nationality = $this->input->post('nationality');
$occupation=$this->input->post('occupation'); $occupation=$this->input->post('occupation');
$contact_phone = '手机:' . $this->input->post('mobile'); $country_code = $this->input->post('country_code');
$contact_phone = $country_code . ' ' . $this->input->post('mobile');
$COLI_SN = $this->input->post('COLI_SN'); $COLI_SN = $this->input->post('COLI_SN');
$visitor_link = $this->input->post('visitor_link'); $visitor_link = $this->input->post('visitor_link');
$COLI_ID = $this->input->post('COLI_ID'); $COLI_ID = $this->input->post('COLI_ID');
@ -97,7 +98,7 @@ class Confirm extends CI_Controller {
//已经确认过 //已经确认过
$had_save = $this->Order_model->get_visitor_link($COLI_SN, $visitor_link); $had_save = $this->Order_model->get_visitor_link($COLI_SN, $visitor_link);
if (!empty($had_save)) { if (!empty($had_save)) {
echo json_encode(array('status' => 'ok')); echo json_encode(array('status' => 'ok'));
return; return;
@ -162,7 +163,7 @@ class Confirm extends CI_Controller {
echo json_encode(array('status' => 'no')); echo json_encode(array('status' => 'no'));
} }
} }
function review() { function review() {
header('Content-type: application/json;charset=utf-8'); header('Content-type: application/json;charset=utf-8');
$data = array(); $data = array();

Loading…
Cancel
Save