上传教学奖励
This commit is contained in:
parent
985b30f3a2
commit
1883467116
@ -56,6 +56,6 @@ func (this *apiComp) Receive(session comm.IUserSession, req *pb.AcademyReceiveRe
|
||||
// }
|
||||
this.module.DispenseRes(session, level.Award, true)
|
||||
}
|
||||
|
||||
session.SendMsg(string(this.module.GetType()), "receive", &pb.AcademyReceiveResp{Issucc: true})
|
||||
return
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ func (this *apiComp) TeachingReceive(session comm.IUserSession, req *pb.AcademyT
|
||||
}
|
||||
this.module.DispenseRes(session, level.Award, true)
|
||||
}
|
||||
|
||||
session.SendMsg(string(this.module.GetType()), "teachingreceive", &pb.AcademyTeachingReceiveResp{Issucc: true})
|
||||
return
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ func (this *modelAcademyComp) queryInfo(uId string) (result *pb.DBAcademy, err e
|
||||
result = &pb.DBAcademy{
|
||||
Uid: uId,
|
||||
Level: make(map[int32]bool),
|
||||
Hero: make(map[string]bool),
|
||||
}
|
||||
if err = this.Get(uId, result); err != nil && err != mgo.MongodbNil {
|
||||
this.module.Errorln(err)
|
||||
|
Loading…
Reference in New Issue
Block a user