|
|
@@ -8,6 +8,7 @@
|
|
|
|
|
|
namespace business\controllers;
|
|
|
|
|
|
+use biz\goods\services\GoodsCategoryService;
|
|
|
use biz\goods\services\GoodsSettingService;
|
|
|
use biz\merchant\services\MerchantAssetService;
|
|
|
use biz\saas\services\FestRiseService;
|
|
|
@@ -57,7 +58,7 @@ class GoodsController extends BaseController
|
|
|
$goods = GoodsService::getGoodsInfo($id);
|
|
|
util::success($goods);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//更新商品 shish 2019.12.7
|
|
|
public function actionUpdate()
|
|
|
{
|
|
|
@@ -70,7 +71,7 @@ class GoodsController extends BaseController
|
|
|
util::complete();
|
|
|
}
|
|
|
|
|
|
- //商品排序
|
|
|
+ //商品排序 shish 2020.3.11
|
|
|
public function actionSort()
|
|
|
{
|
|
|
$id = Yii::$app->request->get('id', 0);
|
|
|
@@ -78,9 +79,10 @@ class GoodsController extends BaseController
|
|
|
$info = GoodsService::getById($id);
|
|
|
GoodsService::valid($info, $this->merchantId);
|
|
|
GoodsService::updateById($id, ['inTurn' => $inTurn]);
|
|
|
+ GoodsCategoryService::updateByCondition(['gId' => $id], ['inTurn' => $inTurn]);
|
|
|
util::complete('操作成功');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//删除商品 shish 2019.12.7
|
|
|
public function actionDelete()
|
|
|
{
|
|
|
@@ -100,7 +102,7 @@ class GoodsController extends BaseController
|
|
|
GoodsService::changeStatus($id, $status);
|
|
|
util::complete();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//发送短链接到手机上 shish 2019.12.8
|
|
|
public function actionSendShortUrl()
|
|
|
{
|