Browse Source

美团散花

shish 3 năm trước cách đây
mục cha
commit
71e8d245e1
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      app-hd/controllers/GoodsController.php

+ 12 - 0
app-hd/controllers/GoodsController.php

@@ -20,6 +20,18 @@ class GoodsController extends BaseController
 
     public $guestAccess = ['detail'];
 
+    public function actionSetSh()
+    {
+        $get = Yii::$app->request->get();
+        $id = $get['id'] ?? 0;
+        $info = GoodsClass::getById($id, true);
+        if (empty($info)) {
+            util::fail('没有找到商品');
+        }
+        GoodsClass::valid($info, $this->mainId);
+        util::complete();
+    }
+
     //商品打印 ssh 20220602
     public function actionPrint()
     {