|
@@ -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;
|