|
@@ -144,6 +144,7 @@ class ProductController extends BaseController
|
|
|
$get = Yii::$app->request->get();
|
|
$get = Yii::$app->request->get();
|
|
|
$id = $get['id'] ?? 0;
|
|
$id = $get['id'] ?? 0;
|
|
|
$num = $get['num'] ?? 1;
|
|
$num = $get['num'] ?? 1;
|
|
|
|
|
+ $num = floatval($num);
|
|
|
$type = $get['type'] ?? 0;
|
|
$type = $get['type'] ?? 0;
|
|
|
$info = ProductClass::getById($id, true);
|
|
$info = ProductClass::getById($id, true);
|
|
|
if (empty($info)) {
|
|
if (empty($info)) {
|