From b557a96fea09923d8110804d71b10865ad49ed9d Mon Sep 17 00:00:00 2001 From: yanfan <1406317364@qq.com> Date: Thu, 21 Nov 2024 16:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=88=E5=85=94=E6=BC=94=E5=87=BA=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/shoutu-show/api.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/shoutu-show/api.go b/platform/shoutu-show/api.go index 1d937d1..bcfde68 100644 --- a/platform/shoutu-show/api.go +++ b/platform/shoutu-show/api.go @@ -33,10 +33,9 @@ func newShouTuShowApiImpl(log logx.Logger, client *Client) ShouTuShowApi { // 守兔演出不支持H5取链,生成的H5url为小程序中间页URL func (a *ShouTuShowApiImpl) GenerateLink(ctx context.Context, req GenerateLinkRequest) (*GenerateLinkResponse, error) { - if req.ActivityUrl == "" || req.Sid == "" { - return nil, errors.New("请求参数activityUrl或sid不能为空") + if req.ActivityUrl == "" || req.LinkCode == "" || req.ActId == "" { + return nil, errors.New("请求参数activityUrl或linkCode或actId不能为空") } - activityUrl := fmt.Sprintf("%s?linkCode=%s&actId=%s", req.ActivityUrl, req.LinkCode, req.ActId) return &GenerateLinkResponse{ H5: activityUrl,