shish hai 2 meses
pai
achega
973f8c92d8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app-mall/controllers/HdController.php

+ 2 - 1
app-mall/controllers/HdController.php

@@ -121,6 +121,7 @@ class HdController extends BaseController
     {
         $get = Yii::$app->request->get();
         $delStatus = $get['delStatus'] ?? 0;
+        $userId = $this->userId;
 
         $mallUpgrading = getenv('MALL_UPGRADING') == false ? 0 : getenv('MALL_UPGRADING');
         if ($mallUpgrading == 1) {
@@ -132,7 +133,7 @@ class HdController extends BaseController
         }
 
         $where = [];
-        $where['userId'] = $this->userId;
+        $where['userId'] = $userId;
         $where['delStatus'] = $delStatus;
         $respond = HdClass::getHdList($where);
         util::success($respond);