shish %!s(int64=6) %!d(string=hai) anos
pai
achega
d7e33b201b

+ 1 - 1
app/business/controllers/CategoryController.php

@@ -90,7 +90,7 @@ class CategoryController extends BaseController
 		util::success($data);
 		util::success($data);
 	}
 	}
 
 
-	//排放接口 shish 2020.3.11
+	//分类排序 shish 2020.3.11
 	public function actionSort()
 	public function actionSort()
 	{
 	{
 		$id = Yii::$app->request->get('id', 0);
 		$id = Yii::$app->request->get('id', 0);

+ 6 - 4
app/business/controllers/GoodsController.php

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

+ 2 - 2
biz/goods/services/GoodsService.php

@@ -13,9 +13,9 @@ use linslin\yii2\curl;
 
 
 class GoodsService extends BaseService
 class GoodsService extends BaseService
 {
 {
-	
+
 	public static $baseFile = '\biz\goods\classes\GoodsClass';
 	public static $baseFile = '\biz\goods\classes\GoodsClass';
-	
+
 	//后台列表 shish 2019.12.7
 	//后台列表 shish 2019.12.7
 	public static function getGoodsList($where)
 	public static function getGoodsList($where)
 	{
 	{