LiuJ 4 сар өмнө
parent
commit
61fcb65d7c

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