作者 anyv
1 个管道 的构建 通过 耗费 0 秒

66

... ... @@ -157,6 +157,7 @@ class GoodsController extends AdminBaseController{
$res = Db::name('Goods') -> update($data);
Db::name('collect') -> where('goods_id',$id) -> delete();
Db::name('browsing_history') -> where('goods_id',$id) -> delete();
Db::name('shopping_cart') -> where('goods_id',$id) -> delete();
if($res){
return true;
}else{
... ... @@ -192,6 +193,7 @@ class GoodsController extends AdminBaseController{
Db::name('goods_label') -> where('goods_id',$id) -> delete();
Db::name('collect') -> where("goods_id = ".$id) -> delete();
Db::name('browsing_history') -> where("goods_id = ".$id) -> delete();
Db::name('shopping_cart') -> where('goods_id',$id) -> delete();
if($data){
return true;
}else{
... ...