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,