浏览代码

商品列表

shish 5 年之前
父节点
当前提交
2bd58bf6fb
共有 1 个文件被更改,包括 3 次插入17 次删除
  1. 3 17
      app-hd/controllers/GoodsController.php

+ 3 - 17
app-hd/controllers/GoodsController.php

@@ -108,29 +108,15 @@ class GoodsController extends BaseController
     //上下架 ssh 2019.12.8
     public function actionChangeStatus()
     {
-        $post = Yii::$app->request->post();
-        $id = isset($post['id']) ? $post['id'] : 0;
-        $status = isset($post['status']) ? $post['status'] : 1;
+        $get = Yii::$app->request->get();
+        $id = isset($get['id']) ? $get['id'] : 0;
+        $status = isset($get['status']) ? $get['status'] : 1;
         $info = GoodsService::getById($id);
         GoodsService::valid($info, $this->sjId);
         GoodsService::changeStatus($id, $status);
         util::complete();
     }
 
-    //发送短链接到手机上 ssh 2019.12.8
-    public function actionSendShortUrl()
-    {
-        $id = Yii::$app->request->get('id');
-        util::complete();
-    }
-
-    //查看商品短链接 ssh 2019.12.8
-    public function actionShortUrl()
-    {
-        $id = Yii::$app->request->get('id');
-        util::success(['shortUrl' => 'https://w.url.cn/s/A8iQl2r']);
-    }
-
     //商品说明 ssh 2019.12.8
     public function actionIntroduce()
     {