diff --git a/modules/smithy/api_stoveup.go b/modules/smithy/api_stoveup.go index 10ed8e6e5..a221620c1 100644 --- a/modules/smithy/api_stoveup.go +++ b/modules/smithy/api_stoveup.go @@ -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)