|
@@ -168,6 +168,9 @@ class Commodity extends Start_Controller {
|
|
|
$this->commodityread->save(array('sku'=>$d[1]),$d[0]);
|
|
|
}
|
|
|
}
|
|
|
+ $res =$this->commodity->save(array('category'=>','.$category),$id);
|
|
|
+ var_dump($res);
|
|
|
+ die;
|
|
|
if($this->commodity->save(array('category'=>','.$category),$id))
|
|
|
{
|
|
|
echo json_encode(array('msg'=>'操作成功','success'=>true));exit;
|
|
@@ -385,6 +388,7 @@ class Commodity extends Start_Controller {
|
|
|
}
|
|
|
$sid = " and (".rtrim($sid,'or').")";
|
|
|
}
|
|
|
+ $sid = " and id = 11";
|
|
|
$post = $this->input->post(NULL, TRUE);
|
|
|
if($sid)
|
|
|
{
|