LiuJ 4 ماه پیش
والد
کامیت
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,
+                    ]);
                 }
             }