上传时间戳代码

This commit is contained in:
liwei1dao 2022-11-09 17:34:18 +08:00
parent cef4865080
commit c1152ebb2d
4 changed files with 3 additions and 3 deletions

1
bin/timestamp.text Normal file
View File

@ -0,0 +1 @@
1256545

View File

@ -48,7 +48,6 @@ func (this *apiComp) TeachingReceive(session comm.IUserSession, req *pb.AcademyT
code = pb.ErrorCode_DBError
return
}
this.module.DispenseRes(session, level.Award, true)
}
session.SendMsg(string(this.module.GetType()), "teachingreceive", &pb.AcademyTeachingReceiveResp{Issucc: true})

View File

@ -48,6 +48,7 @@ func (this *modelAcademyComp) queryInfo(uId string) (result *pb.DBAcademy, err e
func (this *modelAcademyComp) updateInfo(info *pb.DBAcademy) (err error) {
if err = this.Change(info.Uid, map[string]interface{}{
"level": info.Level,
"hero": info.Hero,
}); err != nil {
this.module.Errorln(err)
return

View File

@ -222,13 +222,12 @@ func (this *Configure) checkConfigure() {
//读取偏移时间
func (this *Configure) readoffsettime() {
var (
fliepath string
file *os.File
data []byte
offtimeStr string
err error
)
if file, err = os.Open(fliepath); err != nil {
if file, err = os.Open(this.options.TimestampFile); err != nil {
return
}
defer file.Close()