Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
451c53aaf7
@ -3,6 +3,7 @@ package smithy
|
|||||||
import (
|
import (
|
||||||
"go_dreamfactory/comm"
|
"go_dreamfactory/comm"
|
||||||
"go_dreamfactory/pb"
|
"go_dreamfactory/pb"
|
||||||
|
"go_dreamfactory/sys/configure"
|
||||||
|
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
)
|
)
|
||||||
@ -39,6 +40,11 @@ func (this *apiComp) StoveUp(session comm.IUserSession, req *pb.SmithyStoveUpReq
|
|||||||
}
|
}
|
||||||
stove.Lv += 1
|
stove.Lv += 1
|
||||||
update := make(map[string]interface{})
|
update := make(map[string]interface{})
|
||||||
|
if stove.RecoveTime == 0 {
|
||||||
|
stove.RecoveTime = configure.Now().Unix()
|
||||||
|
update["recoveTime"] = stove.RecoveTime
|
||||||
|
}
|
||||||
|
|
||||||
//update["temperature"] = stove.Temperature
|
//update["temperature"] = stove.Temperature
|
||||||
update["lv"] = stove.Lv
|
update["lv"] = stove.Lv
|
||||||
this.module.modelStove.updateSmithyStove(session.GetUserId(), update)
|
this.module.modelStove.updateSmithyStove(session.GetUserId(), update)
|
||||||
|
Loading…
Reference in New Issue
Block a user