From 92b7b5747de32b09f4b5716ddc4328f5f655c24e Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 12 Apr 2023 11:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=89=E5=AD=90=E5=8D=87=E7=BA=A7=E5=90=8E?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E7=82=89=E6=B8=A9=E4=B8=8A=E9=99=90=E6=97=B6?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=BC=80=E5=90=AF=E8=87=AA=E5=8A=A8=E6=81=A2?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/smithy/api_stoveup.go | 6 ++++++ 1 file changed, 6 insertions(+) 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)