shish 3 lat temu
rodzic
commit
1585dfbba0
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      app-ghs/controllers/StatController.php

+ 6 - 0
app-ghs/controllers/StatController.php

@@ -24,6 +24,12 @@ class StatController extends BaseController
             util::fail('超管才能查看');
         }
 
+        $shopAdmin = $this->shopAdmin;
+        $staffId = $shopAdmin->id ?? 0;
+        if (in_array($staffId, [126921, 128024, 128026])) {
+            util::fail('暂无权限');
+        }
+
         $mainId = $this->mainId;
         $respond = StatSaleClass::profile($mainId);
         $income = $respond['income'] ?? 0;