|
@@ -41,7 +41,7 @@ class ProductController extends BaseController
|
|
|
{
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
$get = Yii::$app->request->get();
|
|
|
$id = $get['id'] ?? 0;
|
|
$id = $get['id'] ?? 0;
|
|
|
- $amount = $get['amount'] ?? 0;
|
|
|
|
|
|
|
+ $amount = $get['avCost'] ?? 0;
|
|
|
$product = ProductClass::getById($id, true);
|
|
$product = ProductClass::getById($id, true);
|
|
|
if (empty($info)) {
|
|
if (empty($info)) {
|
|
|
util::fail('没有找到花材');
|
|
util::fail('没有找到花材');
|