From 896e597e3579f65c36060104955a5d640a90fb2b Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 4 Apr 2019 12:14:39 +0800 Subject: [PATCH] Update Goods.php --- application/store/controller/Goods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/store/controller/Goods.php b/application/store/controller/Goods.php index 1c7bbb313..44f1ef84b 100644 --- a/application/store/controller/Goods.php +++ b/application/store/controller/Goods.php @@ -84,7 +84,7 @@ class Goods extends Controller } list($post, $data) = [$this->request->post(), []]; if (isset($post['id']) && isset($post['goods_id']) && is_array($post['goods_id'])) { - foreach (array_keys($post['goods_id']) as $key) if ($post['number'][$key] > 0) array_push($data, [ + foreach (array_keys($post['goods_id']) as $key) if ($post['goods_number'][$key] > 0) array_push($data, [ 'goods_id' => $post['goods_id'][$key], 'goods_spec' => $post['goods_spec'][$key], 'number_stock' => $post['goods_number'][$key],