shish vor 6 Jahren
Ursprung
Commit
98196ec6dd
2 geänderte Dateien mit 1 neuen und 16 gelöschten Zeilen
  1. 1 10
      biz/goods/services/GoodsStyleService.php
  2. 0 6
      console/controllers/InitController.php

+ 1 - 10
biz/goods/services/GoodsStyleService.php

@@ -11,16 +11,7 @@ use linslin\yii2\curl;
 
 class GoodsStyleService extends BaseService
 {
-	
-	public static $baseFile = '\biz\goods\classes\GoodsStyleClass';
 
-	public static function updateGlhsGoods()
-	{
-		$styleList = GoodsStyleClass::getAllByCondition([], null, '*');
-		foreach ($styleList as $style) {
-			$goodsId = $style['goodsId'];
-			GoodsClass::updateById($goodsId, ['goodsStyle' => 1]);
-		}
-	}
+	public static $baseFile = '\biz\goods\classes\GoodsStyleClass';
 
 }

+ 0 - 6
console/controllers/InitController.php

@@ -104,10 +104,4 @@ class InitController extends Controller
 		xhMerchantAssetService::updateByMerchantId($merchantId, ['totalFans' => $total]);
 	}
 
-	//商品多款式 shish 2020.6.4
-	public function actionUpdateGoods()
-	{
-		GoodsStyleService::updateGlhsGoods();
-	}
-	
 }