浏览代码

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;