Przeglądaj źródła

请管理员操作

shish 2 lat temu
rodzic
commit
1f0b68e8a8
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app-ghs/controllers/PtItemController.php

+ 2 - 2
app-ghs/controllers/PtItemController.php

@@ -22,11 +22,11 @@ class PtItemController extends BaseController
         }
         }
         if (getenv('YII_ENV') == 'production') {
         if (getenv('YII_ENV') == 'production') {
             if ($this->adminId != 4) {
             if ($this->adminId != 4) {
-                util::fail('无法操作');
+                util::fail('请管理员操作');
             }
             }
         } else {
         } else {
             if ($this->adminId != 919) {
             if ($this->adminId != 919) {
-                util::fail('无法操作');
+                util::fail('请管理员操作');
             }
             }
         }
         }
         $newAuth = $item->auth == 0 ? 1 : 0;
         $newAuth = $item->auth == 0 ? 1 : 0;