|
|
@@ -1133,14 +1133,14 @@ class CustomController extends BaseController
|
|
|
public function actionChangeLevel()
|
|
|
{
|
|
|
$shopAdmin = $this->shopAdmin;
|
|
|
- if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
|
|
|
+ if (!isset($shopAdmin->super) || $shopAdmin->super != 1) {
|
|
|
util::fail('超管才能修改');
|
|
|
}
|
|
|
|
|
|
//泉城的只有苏小娟才能修改
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
if ($this->mainId == 60) {
|
|
|
- if (in_array($this->adminId, [2499, 4]) == false) {
|
|
|
+ if (!in_array($this->adminId, [2499, 4])) {
|
|
|
util::fail('请小娟修改');
|
|
|
}
|
|
|
}
|