lvhao преди 14 часа
родител
ревизия
dc92f89073
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      core/CoreApp/controllers/Registration.php

+ 2 - 0
core/CoreApp/controllers/Registration.php

@@ -261,6 +261,7 @@ class Registration extends Start_Controller {
 			}
 			$red = $this->input->post('red',true);
 			$post['ted'] = rtrim($red,',');
+			unset($post['red']);
 			if($this->registration->insert($post))
         	{
          		echo json_encode(array('msg'=>'添加成功','success'=>true));exit;
@@ -318,6 +319,7 @@ class Registration extends Start_Controller {
 			}
 			$red = $this->input->post('red',true);
 			$post['ted'] = rtrim($red,',');
+			unset($post['red']);
 			if($this->registration->save($post,$id))
         	{
          		echo json_encode(array('msg'=>'修改成功','success'=>true));exit;