@@ -1529,6 +1529,11 @@ class WebsiteService implements WebsiteServiceInterface
'real_category_arr_id' => json_encode($validPids),
'real_pid' => $pid,
]);
+ } else {
+ WebsiteCategory::where('id', $value['id'])->update([
+ 'real_category_arr_id' => null,
+ 'real_pid' => null,
+ ]);
}