|
@@ -208,6 +208,7 @@ class User extends Start_Controller
|
|
|
$post['html'] = $this->input->post('html', true);
|
|
|
$post['own'] = $user['own'];
|
|
|
$post['api'] = sha1(rand(1000000, 9999999));
|
|
|
+ unset($post['id']);
|
|
|
if ($this->user->insert($post)) {
|
|
|
echo json_encode(array('msg' => '添加成功', 'success' => true));
|
|
|
exit;
|