|
@@ -800,7 +800,7 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
$differenceIDS = array_diff($data['old_category_arr_id'], $categoryIds);
|
|
|
//有差异 删除
|
|
|
if(count($differenceIDS)>0){
|
|
|
- WebsiteCategory::where(['website_id'=>$data['category_id']])->whereIn("category_id",$differenceIDS)->delete();
|
|
|
+ WebsiteCategory::where(['website_id'=>$data['website_id']])->whereIn("category_id",$differenceIDS)->delete();
|
|
|
}
|
|
|
//新的数组重新创建
|
|
|
if(count($data['new_category_arr_id'])>0){
|