From 38f7db419a1c36e94e604184be82fdbebbf97b15 Mon Sep 17 00:00:00 2001 From: cyc Date: Wed, 6 Mar 2019 10:45:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E5=B1=8F=E8=94=BD=E6=9C=89ur?= =?UTF-8?q?l=E7=9A=84=E8=AE=A2=E5=8D=95=EF=BC=8C=E5=B9=B6=E4=B8=94?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=88=B0=E6=97=A5=E5=BF=97=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/orders.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/application/controllers/orders.php b/application/controllers/orders.php index 00647a2e..780d3c4e 100644 --- a/application/controllers/orders.php +++ b/application/controllers/orders.php @@ -322,9 +322,9 @@ class Orders extends CI_Controller { } else { //添加隐藏字段判断是否为扫描提交 if ( $this->input->get_post("nullemail") != NULL) { - log_message('error', "reject by Robot Detected."); - header('HTTP/1.1 200 OK'); - header('status: 200 OK'); + log_message('error', "reject by Robot Detected.".json_encode($_POST)); + $data[] = array('name' => 'go', 'value' => site_url('orders/contactus_thankyou/')); + echo json_encode($data); exit; } $this->Orders_model->COLI_ID = $this->Orders_model->MakeOrderNumber(); @@ -361,8 +361,11 @@ class Orders extends CI_Controller { preg_match('/((https|http):[\/]{2})*[\w]+[.]{1}[a-z\d\-]+[.a-z\d-\/.htm]*/', $comments, $ms); if (!empty($ms)) { $this->Orders_model->COLI_Purpose = '-1'; + $data[] = array('name' => 'go', 'value' => site_url('orders/contactus_thankyou/')); + echo json_encode($data); + exit; } - + $this->Orders_model->COLI_GroupType = '19006'; $this->Orders_model->COLI_OrderType = '19006'; $this->Orders_model->MEI_MailList = $this->input->post('email');