上传代码
This commit is contained in:
parent
7424b5c57b
commit
36d26e0448
@ -32,6 +32,7 @@ type Pay struct {
|
|||||||
modelPayUser *modelPayUserComp
|
modelPayUser *modelPayUserComp
|
||||||
modelDaily *modelDailyComp
|
modelDaily *modelDailyComp
|
||||||
privilege comm.IPayDelivery //月卡
|
privilege comm.IPayDelivery //月卡
|
||||||
|
warorder comm.IWarorder //月卡
|
||||||
configure *configureComp
|
configure *configureComp
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,6 +137,12 @@ func (this *Pay) Rpc_ModulePayDelivery(ctx context.Context, args *pb.PayDelivery
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
case 4:
|
||||||
|
if errdata, items = this.privilege.Delivery(session, args.Productid); errdata != nil {
|
||||||
|
reply.Code = errdata.Code
|
||||||
|
return
|
||||||
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
for _, v := range res {
|
for _, v := range res {
|
||||||
items = append(items, &pb.UserAssets{A: v.A, T: v.T, N: v.N})
|
items = append(items, &pb.UserAssets{A: v.A, T: v.T, N: v.N})
|
||||||
|
@ -77,6 +77,14 @@ func (this *apiComp) Accept(session comm.IUserSession, req *pb.WTaskAcceptReq) (
|
|||||||
wtask.Accepts = append(wtask.Accepts, req.Tid)
|
wtask.Accepts = append(wtask.Accepts, req.Tid)
|
||||||
update["activations"] = wtask.Activations
|
update["activations"] = wtask.Activations
|
||||||
update["accepts"] = wtask.Accepts
|
update["accepts"] = wtask.Accepts
|
||||||
|
if err = this.module.ModuleBuried.ActiveCondition(session.GetUserId(), conf.Completetask...); err != nil {
|
||||||
|
errdata = &pb.ErrorData{
|
||||||
|
Code: pb.ErrorCode_ExternalModule,
|
||||||
|
Title: pb.ErrorCode_ExternalModule.ToString(),
|
||||||
|
Message: fmt.Sprintf("ModuleBuried.ActiveCondition uid:%s condiIds:%v", session.GetUserId(), conf.Completetask),
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
if progress, errdata = this.module.pushtaskprogress(session, wtask, false); errdata != nil {
|
if progress, errdata = this.module.pushtaskprogress(session, wtask, false); errdata != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user