LiuJ 4 месяцев назад
Родитель
Сommit
61fcb65d7c
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      app/JsonRpc/WebsiteService.php

+ 5 - 0
app/JsonRpc/WebsiteService.php

@@ -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,
+                    ]);
                 }
             }