|
|
@@ -358,6 +358,7 @@ class GoodsClass extends BaseClass
|
|
|
$data['py'] = stringUtil::py($data['name']);
|
|
|
$flowerNum = $data['flowerNum'] ?? 0;
|
|
|
$kindId = $data['kindId'] ?? 0;
|
|
|
+ $kindName = $data['kindName'] ?? '';
|
|
|
$sn = orderSn::getGoodsSn();
|
|
|
$data['sn'] = $sn;
|
|
|
$addStock = $data['stock'] ?? 0;
|
|
|
@@ -411,6 +412,7 @@ class GoodsClass extends BaseClass
|
|
|
'delStatus' => $delStatus,
|
|
|
'setItemNum' => $setItemNum,
|
|
|
'kindId' => $kindId,
|
|
|
+ 'kindName' => $kindName,
|
|
|
];
|
|
|
GoodsCategoryClass::add($addCategory);
|
|
|
CategoryClass::counters(['goodsNum' => 1], ['id' => $catId]);
|