Merge branch 'feature-userinfo-daiyb' into dev
This commit is contained in:
commit
fc0484370a
@ -17,29 +17,6 @@ var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
func (this *QueryTheOrderSnapshotInformationReq) Validate() error {
|
||||
return nil
|
||||
}
|
||||
func (this *QueryTheOrderSnapshotInformationResp) Validate() error {
|
||||
for _, item := range this.BundleOrder {
|
||||
if item != nil {
|
||||
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
||||
return github_com_mwitkow_go_proto_validators.FieldError("BundleOrder", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
for _, item := range this.AddBundleOrder {
|
||||
if item != nil {
|
||||
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
||||
return github_com_mwitkow_go_proto_validators.FieldError("AddBundleOrder", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (this *ServiceInformation) Validate() error {
|
||||
return nil
|
||||
}
|
||||
func (this *DeleteValueAddServiceRequest) Validate() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
9231
api/cast/cast.pb.go
9231
api/cast/cast.pb.go
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -38,32 +38,33 @@ func MediaUserList(ctx *gin.Context) {
|
||||
return
|
||||
}
|
||||
var statResp *bundle.ArtistUploadStatsResponse
|
||||
for _, v := range resp.Data {
|
||||
statResp, err = service.BundleProvider.GetArtistUploadStatsList(context.Background(), &bundle.TaskQueryRequest{
|
||||
Keyword: v.ArtistPhone,
|
||||
Page: 0,
|
||||
PageSize: 0,
|
||||
SortBy: "",
|
||||
SortType: "",
|
||||
LastTaskAssignee: "",
|
||||
SubNums: nil,
|
||||
})
|
||||
if err != nil {
|
||||
service.Error(ctx, errors.New("查询艺人数据错误"))
|
||||
return
|
||||
if req.NeedStats {
|
||||
for _, v := range resp.Data {
|
||||
statResp, err = service.BundleProvider.GetArtistUploadStatsList(context.Background(), &bundle.TaskQueryRequest{
|
||||
Keyword: v.ArtistPhone,
|
||||
Page: 0,
|
||||
PageSize: 0,
|
||||
SortBy: "",
|
||||
SortType: "",
|
||||
LastTaskAssignee: "",
|
||||
SubNums: nil,
|
||||
})
|
||||
if err != nil {
|
||||
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, // 已释放图文总数
|
||||
v.PendingVideoCount = info.PendingVideoCount
|
||||
v.UploadedVideoCount = info.UploadedVideoCount
|
||||
v.ReleasedVideoTotal = info.ReleasedVideoTotal
|
||||
v.PendingPostCount = info.PendingPostCount
|
||||
v.UploadedPostCount = info.UploadedPostCount
|
||||
v.ReleasedPostTotal = info.ReleasedPostTotal
|
||||
}
|
||||
}
|
||||
if statResp != nil && len(statResp.Items) > 0 {
|
||||
info := statResp.Items[0]
|
||||
// "pendingVideoCount": 10, // 待上传视频数 "uploadedVideoCount": 25, // 已上传视频数 "releasedVideoTotal": 35, // 已释放视频总数
|
||||
//"pendingPostCount": 14, // 待上传图文数 "uploadedPostCount": 21, // 已上传图文数 "releasedPostTotal": 35, // 已释放图文总数
|
||||
v.PendingVideoCount = info.PendingVideoCount
|
||||
v.UploadedVideoCount = info.UploadedVideoCount
|
||||
v.ReleasedVideoTotal = info.ReleasedVideoTotal
|
||||
v.PendingPostCount = info.PendingPostCount
|
||||
v.UploadedPostCount = info.UploadedPostCount
|
||||
v.ReleasedPostTotal = info.ReleasedPostTotal
|
||||
}
|
||||
|
||||
}
|
||||
go func() {
|
||||
for _, v := range resp.Data {
|
||||
|
||||
@ -1111,9 +1111,33 @@ func ImportWorkBatch(ctx *gin.Context) {
|
||||
}
|
||||
if len(row) > 5 {
|
||||
temp.Title = utils.CleanString(row[5])
|
||||
ok, _err := check.SecurityText(temp.Title)
|
||||
if _err != nil {
|
||||
temp.Remark = _err.Error()
|
||||
req.ImageWorks = append(req.ImageWorks, temp)
|
||||
break
|
||||
}
|
||||
if !ok {
|
||||
temp.Remark = "标题黄反审核未通过"
|
||||
req.ImageWorks = append(req.ImageWorks, temp)
|
||||
break
|
||||
}
|
||||
}
|
||||
if len(row) > 6 {
|
||||
temp.Content = utils.CleanString(row[6])
|
||||
if temp.Content != "" {
|
||||
ok, _err := check.SecurityText(temp.Content)
|
||||
if _err != nil {
|
||||
temp.Remark = _err.Error()
|
||||
req.ImageWorks = append(req.ImageWorks, temp)
|
||||
break
|
||||
}
|
||||
if !ok {
|
||||
temp.Remark = "内容黄反审核未通过"
|
||||
req.ImageWorks = append(req.ImageWorks, temp)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
// 图片
|
||||
for i := 8; i <= 18; i++ {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user