Kirin пре 3 година
родитељ
комит
78212e70db

+ 2 - 2
app/admin/controller/system/SystemStore.php

@@ -199,8 +199,8 @@ class SystemStore extends AuthController
     public function apply()
     {
         $type = $this->request->param('type');
-        $show = SystemStoreApply::where('status', 1)->count();//显示中的门店
-        $hide = SystemStoreApply::where('status', 0)->count();//隐藏的门店
+        $show = SystemStoreApply::where('status', 0)->count();//显示中的门店
+        $hide = SystemStoreApply::where('status', 1)->count();//隐藏的门店
         $recycle = SystemStoreApply::where('status', 2)->count();//删除的门店
         if ($type == null) $type = 1;
         $this->assign(compact('type', 'show', 'hide', 'recycle'));

+ 2 - 2
app/models/system/SystemStoreApply.php

@@ -65,10 +65,10 @@ class SystemStoreApply extends BaseModel
     {
         switch ((int)$type) {
             case 1:
-                $data = ['status' => 1];
+                $data = ['status' => 0];
                 break;
             case 2:
-                $data = ['status' => 0];
+                $data = ['status' => 1];
                 break;
             case 3:
                 $data = ['status' => 2];