소스 검색

no message

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;