This commit is contained in:
liwei1dao 2023-04-12 14:59:46 +08:00
commit 451c53aaf7

View File

@ -3,6 +3,7 @@ package smithy
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
"go_dreamfactory/sys/configure"
"google.golang.org/protobuf/proto"
)
@ -39,6 +40,11 @@ func (this *apiComp) StoveUp(session comm.IUserSession, req *pb.SmithyStoveUpReq
}
stove.Lv += 1
update := make(map[string]interface{})
if stove.RecoveTime == 0 {
stove.RecoveTime = configure.Now().Unix()
update["recoveTime"] = stove.RecoveTime
}
//update["temperature"] = stove.Temperature
update["lv"] = stove.Lv
this.module.modelStove.updateSmithyStove(session.GetUserId(), update)