|
|
@@ -514,6 +514,7 @@ class ProductController extends BaseController
|
|
|
}
|
|
|
$cost = bcsub($price, $addPrice, 2);
|
|
|
$post['cost'] = $cost;
|
|
|
+ $post['staffName'] = $shopAdmin->name ?? '';
|
|
|
ProductClass::addProduct($post, $this->shop);
|
|
|
util::complete('添加成功');
|
|
|
}
|
|
|
@@ -552,6 +553,7 @@ class ProductController extends BaseController
|
|
|
$post['sjId'] = $this->sjId;
|
|
|
$post['adminId'] = $this->adminId;
|
|
|
$post['mainId'] = $this->mainId;
|
|
|
+ $post['staffName'] = $shopAdmin->name ?? '';
|
|
|
|
|
|
$price = $post['price'] ?? 0;
|
|
|
$addPrice = $post['addPrice'] ?? 0;
|