shish 6 anni fa
parent
commit
9ea5cd1092
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      biz/ad/classes/AdClass.php

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

@@ -121,10 +121,10 @@ class AdClass extends BaseClass
         $time = time();
         $imgHost = Yii::$app->params['imgHost'];
         $list = [
-            ['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],
+            ['adName' => '培训图', 'adImg' => '/example/mall/1.jpg', 'type' => 0, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
+            ['adName' => '花礼', 'adImg' => '/example/mall/2.jpg', 'type' => 0, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
+            ['adName' => '花艺', 'adImg' => '/example/mall/3.jpg', 'type' => 0, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
+            ['adName' => '门店图片', 'adImg' => '/example/shop/1.jpg', 'type' => 1, 'startTime' => 0, 'endTime' => 4102416000, 'addTime' => $time, 'merchantId' => $merchantId, 'status' => 1],
         ];
         foreach ($list as $val) {
             self::add($val);