shish 4 年 前
コミット
b0670568ef
1 ファイル変更4 行追加3 行削除
  1. 4 3
      app-ghs/controllers/ItemClassController.php

+ 4 - 3
app-ghs/controllers/ItemClassController.php

@@ -1,4 +1,5 @@
 <?php
+
 namespace ghs\controllers;
 
 use bizGhs\item\classes\ItemClassClass;
@@ -12,7 +13,7 @@ class ItemClassController extends BaseController
 
     public function actionList()
     {
-        $where = ['sjId' => $this->sjId];
+        $where = ['mainId' => $this->mainId];
         $list = ItemClassClass::getGhsItemClassList($where);
         util::success($list);
     }
@@ -20,7 +21,7 @@ class ItemClassController extends BaseController
     //花材列表页的分类,包含今日特价分类 ssh 20220315
     public function actionShowClass()
     {
-        $list = ItemClassClass::getShopClass($this->sjId);
+        $list = ItemClassClass::getShopClass($this->mainId);
         util::success($list);
     }
 
@@ -35,7 +36,7 @@ class ItemClassController extends BaseController
     {
         $post = Yii::$app->request->post();
         $post['adminId'] = $this->adminId;
-        ItemClassClass::addGhsItemClass($this->sjId, $post);
+        ItemClassClass::addGhsItemClass($this->mainId, $post);
         util::complete('添加成功');
     }