shish vor 4 Jahren
Ursprung
Commit
27b53c94a9
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6 6
      app-ghs/controllers/SalaryController.php

+ 6 - 6
app-ghs/controllers/SalaryController.php

@@ -17,9 +17,9 @@ class SalaryController extends BaseController
     {
 
         $staff = $this->shopAdmin;
-        $founder = $staff->founder ?? 2;
-        if ($founder != 1) {
-            util::fail('没有权限查看哦');
+        $mobile = $staff->mobile ?? 0;
+        if (in_array($mobile, ['15280215347', '13531700113', '18030262314']) == false) {
+            util::fail('没有权限');
         }
 
         $where = [];
@@ -33,9 +33,9 @@ class SalaryController extends BaseController
     {
 
         $staff = $this->shopAdmin;
-        $founder = $staff->founder ?? 2;
-        if ($founder != 1) {
-            util::fail('没有权限操作哦');
+        $mobile = $staff->mobile ?? 0;
+        if (in_array($mobile, ['15280215347', '13531700113', '18030262314']) == false) {
+            util::fail('没有权限');
         }
 
         $post = Yii::$app->request->post();