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 {