删除无用代码

This commit is contained in:
2024-12-13 17:52:50 +08:00
parent 15aa54cb8e
commit 66ae071357

View File

@@ -92,12 +92,6 @@ class BaseAdminController extends Controller
$newBehaviors['corsFilter'] = [
'class' => Cors::class,
];
// $newBehaviors['pageFilter'] = [
// 'class' => PageFilterBehavior::class,//如果不是接口请求直接返回布局页面
// 'allowActions'=>[
// 'debug/*','gii/*'
// ]
// ];
foreach ($behaviors as $k => $v) {
$newBehaviors[$k] = $v;
}
@@ -133,9 +127,6 @@ class BaseAdminController extends Controller
$this->supplierId = 0;
break;
case 4:
$this->mallId = 0;
$this->supplierId = $admin->supplier_id;
break;
case 5:
$this->mallId = 0;
$this->supplierId = $admin->supplier_id;
@@ -147,7 +138,6 @@ class BaseAdminController extends Controller
}
Yii::$app->mallId = $this->mallId;
Yii::$app->supplierId = $this->supplierId;
}
// 判断是否30分钟以上未操作
if (isset(Yii::$app->user->identity->id)) {
@@ -155,7 +145,6 @@ class BaseAdminController extends Controller
$uid = Yii::$app->user->identity->id;
$redis = Yii::$app->redis;
$opKey = 'op_user_'. $uid;
// ds(date('Y-m-d H:i:s', time() + $redis->ttl($opKey)));
if (!$redis->exists($opKey)) {
$adminAccessToken = new AdminAccessToken();
$olds = $adminAccessToken::find()->where(['admin_id' => $uid, 'status' => 1])->all();