参数校验

This commit is contained in:
meixiongfeng 2022-09-19 14:01:47 +08:00
parent f56269e519
commit 169a936ff0

View File

@ -11,7 +11,7 @@ import (
//参数校验
func (this *apiComp) StrengthenUpStarCheck(session comm.IUserSession, req *pb.HeroStrengthenUpStarReq) (code pb.ErrorCode) {
if req.HeroObjID == "" || len(req.Hero) == 0 || len(req.HeroRace) == 0 {
if req.HeroObjID == "" || len(req.HeroRace) == 0 {
code = pb.ErrorCode_ReqParameterError
}