修复工会活跃度奖励
This commit is contained in:
parent
1f5bf43391
commit
1fb841bf7f
@ -53,8 +53,8 @@ func (this *apiComp) Activityreceive(session comm.IUserSession, req *pb.SociatyA
|
|||||||
conf, ok := this.module.sociatyActivityConf.GetDataMap()[req.Id]
|
conf, ok := this.module.sociatyActivityConf.GetDataMap()[req.Id]
|
||||||
if !ok {
|
if !ok {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_ConfigNoFound,
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -68,7 +68,10 @@ func (this *apiComp) Activityreceive(session comm.IUserSession, req *pb.SociatyA
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 发放个人奖励
|
||||||
|
if errdata = this.module.DispenseRes(session, conf.Reward, true); errdata != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
// 活跃度领取
|
// 活跃度领取
|
||||||
if err := this.module.modelSociatyTask.activityReceive(req.Id, sociaty.Id, uid); err != nil {
|
if err := this.module.modelSociatyTask.activityReceive(req.Id, sociaty.Id, uid); err != nil {
|
||||||
this.module.Error("活跃度领取", log.Field{Key: "uid", Value: session.GetUserId()}, log.Field{Key: "params", Value: req.String()})
|
this.module.Error("活跃度领取", log.Field{Key: "uid", Value: session.GetUserId()}, log.Field{Key: "params", Value: req.String()})
|
||||||
|
Loading…
Reference in New Issue
Block a user