shish %!s(int64=3) %!d(string=hai) anos
pai
achega
1585dfbba0
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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;