mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-21 14:29:15 +08:00
Update ShopGoods.php
This commit is contained in:
parent
3bc3f96f26
commit
d08b0e1a14
@ -89,7 +89,7 @@ class ShopGoods extends Controller
|
|||||||
[$this->vo] = GoodsService::instance()->buildItemData($list);
|
[$this->vo] = GoodsService::instance()->buildItemData($list);
|
||||||
$this->fetch();
|
$this->fetch();
|
||||||
} else {
|
} else {
|
||||||
[$post, $data, $batch] = [$this->request->post(), [], CodeExtend::uniqidDate(12, 'B')];
|
[$data, $post, $batch] = [[], $this->request->post(), CodeExtend::uniqidDate(12, 'B')];
|
||||||
if (isset($post['goods_code']) && is_array($post['goods_code'])) {
|
if (isset($post['goods_code']) && is_array($post['goods_code'])) {
|
||||||
foreach (array_keys($post['goods_code']) as $key) {
|
foreach (array_keys($post['goods_code']) as $key) {
|
||||||
if ($post['goods_stock'][$key] > 0) $data[] = [
|
if ($post['goods_stock'][$key] > 0) $data[] = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user