shish hace 6 años
padre
commit
948737b52b
Se han modificado 1 ficheros con 7 adiciones y 6 borrados
  1. 7 6
      biz/goods/classes/CategoryClass.php

+ 7 - 6
biz/goods/classes/CategoryClass.php

@@ -3,6 +3,7 @@
 namespace biz\goods\classes;
 
 use common\components\business;
+use common\components\stringUtil;
 use common\components\util;
 use Yii;
 use biz\base\classes\BaseClass;
@@ -63,16 +64,16 @@ class CategoryClass extends BaseClass
 		$date = date("Y-m-d H:i:s");
 		$list = [
 			'花束' => [
-				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 188, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人1'],
-				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 288, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人2']
+				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 188, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人1', 'itemNumber' => stringUtil::buildRandNo($merchantId),],
+				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 288, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人2', 'itemNumber' => stringUtil::buildRandNo($merchantId),],
 			],
 			'花篮' => [
-				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 388, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人3'],
-				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 488, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人4']
+				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 388, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人3', 'itemNumber' => stringUtil::buildRandNo($merchantId),],
+				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 488, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人4', 'itemNumber' => stringUtil::buildRandNo($merchantId),],
 			],
 			'永生花' => [
-				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 588, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人5'],
-				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 688, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人6']
+				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 588, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人5', 'itemNumber' => stringUtil::buildRandNo($merchantId),],
+				['shopImg' => '["\/uploads\/201908\/01\/jpg\/19080166819_12358.jpg"]', 'price' => 688, 'content' => '暂无简介', 'merchantId' => $merchantId, 'createTime' => $date, 'updateTime' => $date, 'goodsName' => '天使美人6', 'itemNumber' => stringUtil::buildRandNo($merchantId),],
 			],
 			'绿植' => []
 		];