防止没有数据
This commit is contained in:
parent
e1b0c62f28
commit
2e15c23aeb
@ -52,7 +52,7 @@ func MediaUserList(ctx *gin.Context) {
|
||||
service.Error(ctx, errors.New("查询艺人数据错误"))
|
||||
return
|
||||
}
|
||||
|
||||
if statResp != nil && len(statResp.Items) > 0 {
|
||||
info := statResp.Items[0]
|
||||
// "pendingVideoCount": 10, // 待上传视频数 "uploadedVideoCount": 25, // 已上传视频数 "releasedVideoTotal": 35, // 已释放视频总数
|
||||
//"pendingPostCount": 14, // 待上传图文数 "uploadedPostCount": 21, // 已上传图文数 "releasedPostTotal": 35, // 已释放图文总数
|
||||
@ -63,6 +63,8 @@ func MediaUserList(ctx *gin.Context) {
|
||||
v.UploadedPostCount = info.UploadedPostCount
|
||||
v.ReleasedPostTotal = info.ReleasedPostTotal
|
||||
}
|
||||
|
||||
}
|
||||
go func() {
|
||||
for _, v := range resp.Data {
|
||||
_ = SyncAsAuth(v.ArtistUuid)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user