From 5f7abfcf9b1c243eb1406eba276456f31bce0dbd Mon Sep 17 00:00:00 2001 From: youda Date: Thu, 24 Apr 2025 23:31:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/Goods/goods_edit.html | 2 +- app/api/controller/Config.php | 2 +- app/api/controller/Index.php | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/admin/view/Goods/goods_edit.html b/app/admin/view/Goods/goods_edit.html index b39efcb..440ae8c 100755 --- a/app/admin/view/Goods/goods_edit.html +++ b/app/admin/view/Goods/goods_edit.html @@ -454,7 +454,7 @@ $(".integral_is").hide(); $(".show_is").hide(); $(".sale_time").hide(); - $("#div_daily_xiangou").hide(); + $("#div_daily_xiangou").show(); $(".rage_is").hide(); $(".rage").hide(); diff --git a/app/api/controller/Config.php b/app/api/controller/Config.php index 98beefa..0694284 100755 --- a/app/api/controller/Config.php +++ b/app/api/controller/Config.php @@ -26,7 +26,7 @@ class Config extends Base return $this->renderSuccess('获取成功', [ 'good_type' => $goodsTypeList, 'app_setting' => $app_setting, - 'version' => '105' + 'version' => '106' ]); } diff --git a/app/api/controller/Index.php b/app/api/controller/Index.php index c1568e3..9293389 100755 --- a/app/api/controller/Index.php +++ b/app/api/controller/Index.php @@ -36,11 +36,11 @@ class Index extends Base if ($advert_value['goods_id']) { $goods = Goods::where('id', '=', $advert_value['goods_id'])->find(); $status = $goods['status']; - if (!$goods || $status != 1) { - // 商品不存在或已下架或卖完,不显示此推荐位 - // unset($tuijian[$key]); - continue; - } + // if (!$goods || $status == 2) { + // // 商品不存在或已下架或卖完,不显示此推荐位 + // // unset($tuijian[$key]); + // continue; + // } $tuijian_list[] = $advert_value; } }