From 2d71d9e4983b1d02a560fdc50df4cdd46ca028ab Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Tue, 9 Aug 2022 14:00:14 +0800 Subject: [PATCH] setter --- app/repository/SpuRepository.php | 2 +- view/manager/mall/spu/index.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/repository/SpuRepository.php b/app/repository/SpuRepository.php index 0c3eb60..da88f29 100755 --- a/app/repository/SpuRepository.php +++ b/app/repository/SpuRepository.php @@ -74,7 +74,7 @@ class SpuRepository extends Repository // $whereMap[] = ['is_activity', '=', Spu::COMMON_OFF]; } - if (isset($params['saleable']) &&!empty( $params['saleable'])) { + if (isset($params['saleable']) && !empty( $params['saleable'])) { $whereMap[] = ['saleable', '=', $params['saleable']]; } diff --git a/view/manager/mall/spu/index.html b/view/manager/mall/spu/index.html index e96806f..58e028e 100755 --- a/view/manager/mall/spu/index.html +++ b/view/manager/mall/spu/index.html @@ -12,7 +12,7 @@