소스 검색

Merge branch 'master' of http://git.liuniu946.com/Kirin/zccy

zxhxx 3 년 전
부모
커밋
aa34348a9e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/api/controller/store/CategoryController.php

+ 1 - 1
app/api/controller/store/CategoryController.php

@@ -19,7 +19,7 @@ class CategoryController
             $admin = SystemAdmin::where('id', $user['admin_id'])->find();
             $store_user = SystemStore::where('id', $admin['store_id'] ?? 0)->value('see');
         }
-        if ($store_user) {
+        if (!$store_user) {
             $model = $model->where('only_store_user', 0);
         }
         $cateogry = $model->select();