上传觉醒材料合成消耗金币错误
This commit is contained in:
parent
b27670fe77
commit
bd702168b2
@ -11,6 +11,7 @@ import (
|
||||
"go_dreamfactory/lego/utils/codec/json"
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/pb"
|
||||
"go_dreamfactory/sys/configure"
|
||||
"time"
|
||||
|
||||
"google.golang.org/protobuf/types/known/anypb"
|
||||
@ -82,7 +83,7 @@ func (this *Chat) OnInstallComp() {
|
||||
//Event------------------------------------------------------------------------------------------------------------
|
||||
func (this *Chat) EventUserOffline(session comm.IUserSession) {
|
||||
if err := this.modelChat.removeCrossChannelMember(session); err != nil {
|
||||
this.Debug("EventUserOffline:", log.Fields{ "uid": session.GetUserId(),"err":err.Error()})
|
||||
this.Debug("EventUserOffline:", log.Fields{"uid": session.GetUserId(), "err": err.Error()})
|
||||
}
|
||||
}
|
||||
|
||||
@ -226,7 +227,7 @@ func (this *Chat) SendSysChatToWorld(ctype comm.ChatSystemType, appenddata inter
|
||||
Channel: pb.ChatChannel_System,
|
||||
Ctype: pb.ChatType_Text,
|
||||
Stag: this.service.GetTag(),
|
||||
Ctime: time.Now().Unix(),
|
||||
Ctime: configure.Now().Unix(),
|
||||
Content: fmt.Sprintf(st.Text, agrs...),
|
||||
Display: st.Display,
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ func (this *apiComp) Useitem(session comm.IUserSession, req *pb.ItemsUseItemReq)
|
||||
N: v.N * int32(req.Amount),
|
||||
})
|
||||
}
|
||||
if code = this.module.ConsumeRes(session, itemcf.SynthetizeDeplete, true); code != pb.ErrorCode_Success {
|
||||
if code = this.module.ConsumeRes(session, sale, true); code != pb.ErrorCode_Success {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -127,6 +127,7 @@ func (this *modelDreamComp) trigger(session comm.IUserSession) {
|
||||
Avatar: user.Avatar,
|
||||
Uname: user.Name,
|
||||
Slv: user.Lv,
|
||||
Ctime: configure.Now().Unix(),
|
||||
Stag: session.GetServiecTag(),
|
||||
Content: mdata.Monster,
|
||||
AppendStr: mdata.Id,
|
||||
|
Loading…
Reference in New Issue
Block a user