上传时间戳代码
This commit is contained in:
parent
cef4865080
commit
c1152ebb2d
1
bin/timestamp.text
Normal file
1
bin/timestamp.text
Normal file
@ -0,0 +1 @@
|
|||||||
|
1256545
|
@ -48,7 +48,6 @@ func (this *apiComp) TeachingReceive(session comm.IUserSession, req *pb.AcademyT
|
|||||||
code = pb.ErrorCode_DBError
|
code = pb.ErrorCode_DBError
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.module.DispenseRes(session, level.Award, true)
|
this.module.DispenseRes(session, level.Award, true)
|
||||||
}
|
}
|
||||||
session.SendMsg(string(this.module.GetType()), "teachingreceive", &pb.AcademyTeachingReceiveResp{Issucc: true})
|
session.SendMsg(string(this.module.GetType()), "teachingreceive", &pb.AcademyTeachingReceiveResp{Issucc: true})
|
||||||
|
@ -48,6 +48,7 @@ func (this *modelAcademyComp) queryInfo(uId string) (result *pb.DBAcademy, err e
|
|||||||
func (this *modelAcademyComp) updateInfo(info *pb.DBAcademy) (err error) {
|
func (this *modelAcademyComp) updateInfo(info *pb.DBAcademy) (err error) {
|
||||||
if err = this.Change(info.Uid, map[string]interface{}{
|
if err = this.Change(info.Uid, map[string]interface{}{
|
||||||
"level": info.Level,
|
"level": info.Level,
|
||||||
|
"hero": info.Hero,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
this.module.Errorln(err)
|
this.module.Errorln(err)
|
||||||
return
|
return
|
||||||
|
@ -222,13 +222,12 @@ func (this *Configure) checkConfigure() {
|
|||||||
//读取偏移时间
|
//读取偏移时间
|
||||||
func (this *Configure) readoffsettime() {
|
func (this *Configure) readoffsettime() {
|
||||||
var (
|
var (
|
||||||
fliepath string
|
|
||||||
file *os.File
|
file *os.File
|
||||||
data []byte
|
data []byte
|
||||||
offtimeStr string
|
offtimeStr string
|
||||||
err error
|
err error
|
||||||
)
|
)
|
||||||
if file, err = os.Open(fliepath); err != nil {
|
if file, err = os.Open(this.options.TimestampFile); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user