shish 5 anni fa
parent
commit
3fb7e51016
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app-pt/controllers/ShopAdminController.php

+ 1 - 1
app-pt/controllers/ShopAdminController.php

@@ -31,7 +31,7 @@ class ShopAdminController extends BaseController
             util::fail('没有找到员工');
         }
 
-        if (getenv('YII_DEBUG') != 'local' || getenv('YII_DEBUG') != 'dev') {
+        if (getenv('YII_DEBUG') != 'local' && getenv('YII_DEBUG') != 'dev') {
             util::fail('生产环境不能执行删除操作');
         }