修改自媒体账号获取方式
This commit is contained in:
parent
9f9634e38e
commit
8a9bb7d179
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user