强制屏蔽有url的订单,并且记录到日志中

master
cyc 6 years ago
parent feb427abd1
commit 38f7db419a

@ -322,9 +322,9 @@ class Orders extends CI_Controller {
} else { } else {
//添加隐藏字段判断是否为扫描提交 //添加隐藏字段判断是否为扫描提交
if ( $this->input->get_post("nullemail") != NULL) { if ( $this->input->get_post("nullemail") != NULL) {
log_message('error', "reject by Robot Detected."); log_message('error', "reject by Robot Detected.".json_encode($_POST));
header('HTTP/1.1 200 OK'); $data[] = array('name' => 'go', 'value' => site_url('orders/contactus_thankyou/'));
header('status: 200 OK'); echo json_encode($data);
exit; exit;
} }
$this->Orders_model->COLI_ID = $this->Orders_model->MakeOrderNumber(); $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); preg_match('/((https|http):[\/]{2})*[\w]+[.]{1}[a-z\d\-]+[.a-z\d-\/.htm]*/', $comments, $ms);
if (!empty($ms)) { if (!empty($ms)) {
$this->Orders_model->COLI_Purpose = '-1'; $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_GroupType = '19006';
$this->Orders_model->COLI_OrderType = '19006'; $this->Orders_model->COLI_OrderType = '19006';
$this->Orders_model->MEI_MailList = $this->input->post('email'); $this->Orders_model->MEI_MailList = $this->input->post('email');

Loading…
Cancel
Save