panda 4 months ago
parent
commit
a8d8051424
1 changed files with 7 additions and 0 deletions
  1. 7 0
      addons/shopro/controller/data/Area.php

+ 7 - 0
addons/shopro/controller/data/Area.php

@@ -21,4 +21,11 @@ class Area extends Common
 
         $this->success('获取成功', $list);
     }
+
+    public function list()
+    {
+        $pid = input('pid',0);
+        $list = AreaModel::where('pid', $pid)->select();
+        $this->success('获取成功', $list);
+    }
 }