diff --git a/pkg/service/cast/media.go b/pkg/service/cast/media.go index a2d832f..01d8cdd 100644 --- a/pkg/service/cast/media.go +++ b/pkg/service/cast/media.go @@ -809,7 +809,7 @@ func UnbindAuth(ctx *gin.Context) { ProfileKey: asArtistResp.ArtistInfo.ProfileKey, }) if err != nil { - zap.L().Error("UnlinkSocialNetwork err", zap.Error(_err)) + zap.L().Error("UnlinkSocialNetwork err", zap.Error(err)) service.Error(ctx, errors.New("解除授权失败")) return } diff --git a/pkg/service/cast/test.go b/pkg/service/cast/test.go index 43d4131..ec8e4b5 100644 --- a/pkg/service/cast/test.go +++ b/pkg/service/cast/test.go @@ -17,13 +17,17 @@ import ( func Test(ctx *gin.Context) { action := ctx.PostForm("action") if action == "" { - workUuid := ctx.PostForm("workUuid") - err := CheckImage(workUuid) + profileKey := ctx.PostForm("profileKey") + platformName := ctx.PostForm("platformName") + resp, err := service.AyrshareProvider.GetSocialAnalytics(context.Background(), &aryshare.GetSocialAnalyticsRequest{ + ProfileKey: profileKey, + Platforms: []string{platformName}, + }) if err != nil { service.Error(ctx, err) return } - service.Success(ctx, nil) + service.Success(ctx, resp) return }