|
|
@@ -251,6 +251,11 @@ class Colour extends Start_Controller {
|
|
|
$post['img_two'] = rtrim($img_two,'|');
|
|
|
$post['content'] = $this->input->post('content',true);
|
|
|
$post['edittime'] = time();
|
|
|
+ $is_overimg = 0;
|
|
|
+ if(!empty($img_two)){
|
|
|
+ $is_overimg = 1;
|
|
|
+ }
|
|
|
+ $post['is_overimg'] = $is_overimg;
|
|
|
if($this->colour->save($post,$id))
|
|
|
{
|
|
|
echo json_encode(array('msg'=>'修改成功','success'=>true));exit;
|