This commit is contained in:
meixiongfeng 2023-06-08 20:54:20 +08:00
parent f2ff8d9247
commit 768dd1e304
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.PagodaChalleng
}
conf, err := this.module.configure.GetPagodaConfigData(req.Cid)
if conf != nil {
if err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_PagodaNotFound,
Title: pb.ErrorCode_PagodaNotFound.ToString(),

View File

@ -37,7 +37,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PagodaChal
}
conf, err := this.module.configure.GetPagodaConfigData(req.Cid)
if conf != nil {
if err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_PagodaNotFound,
Title: pb.ErrorCode_PagodaNotFound.ToString(),