Update work.go
This commit is contained in:
commit
48e55a7d32
@ -113,7 +113,6 @@ func UpdateWorkImageCore(ctx *gin.Context, req *cast.UpdateWorkImageReq) (*cast.
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
zap.L().Debug("UpdateWorkImage infoResp2", zap.Any("infoResp", infoResp))
|
||||
req.ArtistName = infoResp.Name
|
||||
req.ArtistPhone = infoResp.TelNum
|
||||
req.ArtistPhoneAreaCode = infoResp.TelAreaCode
|
||||
@ -122,7 +121,6 @@ func UpdateWorkImageCore(ctx *gin.Context, req *cast.UpdateWorkImageReq) (*cast.
|
||||
//if _, err = CheckUserBundleBalance(int32(artistID), modelCast.BalanceTypeImageValue); err != nil {
|
||||
// return nil, err
|
||||
//}
|
||||
|
||||
// 处理内容中的标签:提取、验证并批量导入,以及自动生成标签
|
||||
content, err := processContentAndAutoTags(ctx, req.Content)
|
||||
if err != nil {
|
||||
@ -138,7 +136,6 @@ func UpdateWorkImageCore(ctx *gin.Context, req *cast.UpdateWorkImageReq) (*cast.
|
||||
newCtx := NewCtxWithUserInfo(ctx)
|
||||
req.Source = 1
|
||||
resp, err := service.CastProvider.UpdateWorkImage(newCtx, req)
|
||||
zap.L().Debug("UpdateWorkImage infoResp4", zap.Any("infoResp", req))
|
||||
zap.L().Info("UpdateWorkImage resp", zap.Any("resp", resp))
|
||||
if err != nil {
|
||||
zap.L().Error("UpdateWorkImage err", zap.Error(err))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user