Commit e42cf04a authored by wwccw0591's avatar wwccw0591

pc

parent 53805da0
...@@ -85,19 +85,21 @@ class GoodsCommonStorageModel extends \DAO\AbstractModel { ...@@ -85,19 +85,21 @@ class GoodsCommonStorageModel extends \DAO\AbstractModel {
$catName=$oneVal.$twoVal.$threeVal.$fourVal.$fiveVal; $catName=$oneVal.$twoVal.$threeVal.$fourVal.$fiveVal;
$resultIndex=array_rand($res); $resultIndex=array_rand($res);
$re=$res[$resultIndex]; $re=$res[$resultIndex];
$re['goods_commonid']=500000+(int)$diffKey; $re['goods_commonid']=5000000+(int)$diffKey;
$re['goods_name']=$catName; $re['goods_name']=$catName;
$re['goods_jingle']=$catName; $re['goods_jingle']=$catName;
$re['gc_name']='学习辅导课程'; $re['gc_name']='学习辅导课程';
$re['store_id']=117; $re['store_id']=117;
$re['store_name']='文创园'; $re['store_name']='testlyz1的小店';
$re['goods_addtime']=TIMESTAMP; $re['goods_addtime']=TIMESTAMP;
$re['gc_id']=1152;
$re['gc_id1']=1064;
$re['gc_id2']=1081;
$re['gc_id3']=1152;
$this->db->insert($this->_tableName)->rows($re)->execute(); $this->db->insert($this->_tableName)->rows($re)->execute();
$goodsStorage->addOne($re); $goodsStorage->addOne($re);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment