shish 6 jaren geleden
bovenliggende
commit
53ad7d45fa
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6 6
      biz/ad/classes/AdClass.php

+ 6 - 6
biz/ad/classes/AdClass.php

@@ -118,16 +118,16 @@ class AdClass extends BaseClass
 	public static function initAdd($merchantId)
 	{
 		$time = time();
-		$prefix = Yii::$app->params['imgUrl'];
+		$imgHost = Yii::$app->params['imgHost'];
 		$list = [
-			['adName' => '培训图', 'adImg' => $prefix . '/example/mall/1.jpg', 'type' => 0, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
-			['adName' => '花礼', 'adImg' => $prefix . '/example/mall/2.jpg', 'type' => 0, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
-			['adName' => '花艺', 'adImg' => $prefix . '/example/mall/3.jpg', 'type' => 0, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
-			['adName' => '门店图片', 'adImg' => $prefix . '/example/shop/1.jpg', 'type' => 1, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
+			['adName' => '培训图', 'adImg' => $imgHost . '/example/mall/1.jpg', 'type' => 0, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
+			['adName' => '花礼', 'adImg' => $imgHost . '/example/mall/2.jpg', 'type' => 0, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
+			['adName' => '花艺', 'adImg' => $imgHost . '/example/mall/3.jpg', 'type' => 0, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
+			['adName' => '门店图片', 'adImg' => $imgHost . '/example/shop/1.jpg', 'type' => 1, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
 		];
 		foreach ($list as $val) {
 			self::add($val);
 		}
 	}
-
+	
 }