|
|
@@ -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()
|
|
|
{
|