dever 3 years ago
parent
commit
de6bf4b02b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      app/shop/src/Main.php

+ 6 - 0
app/shop/src/Main.php

@@ -26,6 +26,12 @@ class Main extends Core
     {
         $id = Dever::input('id');
         $this->data['shop'] = Dever::db('shop/info')->find($id);
+
+        if ($this->data['shop']) {
+            unset($this->data['shop']['goods']);
+            unset($this->data['shop']['factory']);
+            unset($this->data['shop']['store']);
+        }
         return $this->data;
     }