shish 3 лет назад
Родитель
Сommit
6e6d5ca1b0
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      app-ghs/controllers/StatKdController.php

+ 7 - 0
app-ghs/controllers/StatKdController.php

@@ -18,6 +18,13 @@ class StatKdController extends BaseController
             util::fail('超管才能查看');
         }
 
+        //惠雅鲜花南员工不能看收入情况
+        $shopAdmin = $this->shopAdmin;
+        $adminId = $shopAdmin->adminId ?? 0;
+        if (in_array($adminId, [2366, 3405, 3407, 2812, 4004])) {
+            util::fail('暂无权限');
+        }
+
         $get = Yii::$app->request->get();
         $contain = $get['contain'] ?? 0;
         $incomeList = StatKdClass::eachChannelIncome($this->mainId, $this->shop, $contain);