by Robin at 20240521
This commit is contained in:
parent
1f5f5b57e0
commit
1d2d8b1cc5
|
@ -17,6 +17,7 @@ var ErrCodeMsgMap = map[ErrCode]string{
|
|||
ErrCodeBadParam: "参数错误",
|
||||
ErrCodeFunctionBlocked: "功能封禁中,截止时间:%s",
|
||||
ErrCodeFunctionBlockedPermanently: "该功能已被永久封禁",
|
||||
ErrCodeMediaUploadFailPleaseCheck: "媒体上传失败,请检查网络或文件大小后重试",
|
||||
|
||||
ErrCodeProductSrvFail: "商品服务错误",
|
||||
ErrCodeProductNotExist: "商品不存在",
|
||||
|
@ -227,6 +228,7 @@ const (
|
|||
ErrCodeBadParam ErrCode = -30 // 参数错误
|
||||
ErrCodeFunctionBlocked ErrCode = -40 // 功能封禁中
|
||||
ErrCodeFunctionBlockedPermanently ErrCode = -41 // 功能永久封禁
|
||||
ErrCodeMediaUploadFailPleaseCheck ErrCode = -50 // 媒体上传失败,请检查网络或文件大小后重试
|
||||
|
||||
// Product: 1xxx
|
||||
ErrCodeProductSrvOk ErrCode = ErrCodeOk
|
||||
|
|
|
@ -574,7 +574,7 @@ func (l *AuthBusinessValidator) EnsureMediaIsSuccessfullyUploaded(media *dbstruc
|
|||
}
|
||||
for _, imageId := range media.GetImageIds() {
|
||||
if int64(imageIdForUploadFail) == imageId {
|
||||
l.ec = errcode.ErrCodeMediaUploadFail
|
||||
l.ec = errcode.ErrCodeMediaUploadFailPleaseCheck
|
||||
return
|
||||
}
|
||||
}
|
||||
|
@ -589,7 +589,7 @@ func (l *AuthBusinessValidator) EnsureMediaIsSuccessfullyUploaded(media *dbstruc
|
|||
}
|
||||
for _, videoId := range media.GetVideoIds() {
|
||||
if int64(videoIdForUploadFail) == videoId {
|
||||
l.ec = errcode.ErrCodeMediaUploadFail
|
||||
l.ec = errcode.ErrCodeMediaUploadFailPleaseCheck
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue