修改自媒体账号获取方式
This commit is contained in:
parent
9f9634e38e
commit
8a9bb7d179
@ -809,7 +809,7 @@ func UnbindAuth(ctx *gin.Context) {
|
|||||||
ProfileKey: asArtistResp.ArtistInfo.ProfileKey,
|
ProfileKey: asArtistResp.ArtistInfo.ProfileKey,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.L().Error("UnlinkSocialNetwork err", zap.Error(_err))
|
zap.L().Error("UnlinkSocialNetwork err", zap.Error(err))
|
||||||
service.Error(ctx, errors.New("解除授权失败"))
|
service.Error(ctx, errors.New("解除授权失败"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,13 +17,17 @@ import (
|
|||||||
func Test(ctx *gin.Context) {
|
func Test(ctx *gin.Context) {
|
||||||
action := ctx.PostForm("action")
|
action := ctx.PostForm("action")
|
||||||
if action == "" {
|
if action == "" {
|
||||||
workUuid := ctx.PostForm("workUuid")
|
profileKey := ctx.PostForm("profileKey")
|
||||||
err := CheckImage(workUuid)
|
platformName := ctx.PostForm("platformName")
|
||||||
|
resp, err := service.AyrshareProvider.GetSocialAnalytics(context.Background(), &aryshare.GetSocialAnalyticsRequest{
|
||||||
|
ProfileKey: profileKey,
|
||||||
|
Platforms: []string{platformName},
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
service.Error(ctx, err)
|
service.Error(ctx, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
service.Success(ctx, nil)
|
service.Success(ctx, resp)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user