From 8896fd6b307f211f276fa50940f02f26666f5831 Mon Sep 17 00:00:00 2001 From: liangzai <2440983361@qq.com> Date: Thu, 17 Oct 2024 10:57:32 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=94=B9=E7=9F=AD=E4=BF=A1=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF2=E3=80=81=E8=8E=B7=E5=8F=96=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/gateway/etc/gateway-api.dev.yaml | 4 ++-- apps/gateway/etc/gateway-api.yaml | 4 ++-- .../internal/logic/product/getproductpagelistlogic.go | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/gateway/etc/gateway-api.dev.yaml b/apps/gateway/etc/gateway-api.dev.yaml index 92aadcd..dbc2af1 100644 --- a/apps/gateway/etc/gateway-api.dev.yaml +++ b/apps/gateway/etc/gateway-api.dev.yaml @@ -13,8 +13,8 @@ VerifyCode: AccessKeyID: "LTAI5tHKcV1RbC8t68UfsATy" AccessKeySecret: "wLWjMBnAlchFMa9gC8B7ZVBKaew4t5" EndpointURL: "dysmsapi.aliyuncs.com" - SignName: "天远查" - TemplateCode: "SMS_299200388" + SignName: "天远数据" + TemplateCode: "SMS_474525324" ValidTime: 300 Qiniu: AccessKey: "AO6u6sDWi6L9TsPfr4awC7FYP85JTjt3bodZACCM" diff --git a/apps/gateway/etc/gateway-api.yaml b/apps/gateway/etc/gateway-api.yaml index 2d45777..33ab065 100644 --- a/apps/gateway/etc/gateway-api.yaml +++ b/apps/gateway/etc/gateway-api.yaml @@ -13,8 +13,8 @@ VerifyCode: AccessKeyID: "LTAI5tHKcV1RbC8t68UfsATy" AccessKeySecret: "wLWjMBnAlchFMa9gC8B7ZVBKaew4t5" EndpointURL: "dysmsapi.aliyuncs.com" - SignName: "天远查" - TemplateCode: "SMS_299200388" + SignName: "天远数据" + TemplateCode: "SMS_474525324" ValidTime: 300 Qiniu: AccessKey: "AO6u6sDWi6L9TsPfr4awC7FYP85JTjt3bodZACCM" diff --git a/apps/sentinel/internal/logic/product/getproductpagelistlogic.go b/apps/sentinel/internal/logic/product/getproductpagelistlogic.go index 845dde2..69fd2bc 100644 --- a/apps/sentinel/internal/logic/product/getproductpagelistlogic.go +++ b/apps/sentinel/internal/logic/product/getproductpagelistlogic.go @@ -26,8 +26,12 @@ func NewGetProductPageListLogic(ctx context.Context, svcCtx *svc.ServiceContext) } func (l *GetProductPageListLogic) GetProductPageList(in *sentinel.PageListRequest) (*sentinel.ProductResponse, error) { + var isVisible *int64 + if in.IsVisible == 0 { + isVisible = nil + } products, total, err := l.svcCtx.ProductsModel.FindProductsList(l.ctx, in.Page, in.PageSize, &model.ProductFilter{ - IsVisible: &in.IsVisible, + IsVisible: isVisible, ProductName: in.ProductName, }) if err != nil {