上传错误吗信息
This commit is contained in:
parent
9ea4ec24ad
commit
3c8a57841b
@ -50,9 +50,9 @@ func (this *apiComp) Create(session comm.IUserSession, req *pb.SociatyCreateReq)
|
|||||||
if len(req.Notice) > 0 {
|
if len(req.Notice) > 0 {
|
||||||
if iscompliance, inscriptionwords := wordfilter.Validate(req.Notice); !iscompliance {
|
if iscompliance, inscriptionwords := wordfilter.Validate(req.Notice); !iscompliance {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_SociatyNameInscriptionWords,
|
Code: pb.ErrorCode_SociatyNoticeInscriptionWords,
|
||||||
Title: pb.ErrorCode_SociatyNameInscriptionWords.ToString(),
|
Title: pb.ErrorCode_SociatyNoticeInscriptionWords.ToString(),
|
||||||
Message: fmt.Sprintf("工会名称包含铭感词:%s", inscriptionwords),
|
Message: fmt.Sprintf("工会公告包含铭感词:%s", inscriptionwords),
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user