Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
53e4d49d2e
@ -19,7 +19,7 @@ func (this *apiComp) CreateCheck(session comm.IUserSession, req *pb.UserCreateRe
|
||||
return
|
||||
}
|
||||
|
||||
if ok, _ := wordfilter.FindIn(name); !ok {
|
||||
if ok, _ := wordfilter.Validate(name); !ok {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_UserNickSensitive,
|
||||
Title: pb.ErrorCode_UserNickSensitive.ToString(),
|
||||
|
@ -17,7 +17,7 @@ func (this *apiComp) ModifynameCheck(session comm.IUserSession, req *pb.UserModi
|
||||
return
|
||||
}
|
||||
|
||||
if ok, _ := wordfilter.FindIn(name); !ok {
|
||||
if ok, _ := wordfilter.Validate(name); !ok {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_UserNickSensitive,
|
||||
Title: pb.ErrorCode_UserNickSensitive.ToString(),
|
||||
|
@ -17,7 +17,7 @@ func (this *apiComp) ModifysignCheck(session comm.IUserSession, req *pb.UserModi
|
||||
return
|
||||
}
|
||||
|
||||
if ok, _ := wordfilter.FindIn(req.Sign); !ok {
|
||||
if ok, _ := wordfilter.Validate(req.Sign); !ok {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_UserNickSensitive,
|
||||
Title: pb.ErrorCode_UserNickSensitive.ToString(),
|
||||
|
@ -7,7 +7,6 @@ import (
|
||||
|
||||
// 参数校验
|
||||
func (this *apiComp) SignCheck(session comm.IUserSession, req *pb.UserSignReq) (errdata *pb.ErrorData) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user