上传时间戳代码
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
|
||||
return
|
||||
}
|
||||
|
||||
this.module.DispenseRes(session, level.Award, 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) {
|
||||
if err = this.Change(info.Uid, map[string]interface{}{
|
||||
"level": info.Level,
|
||||
"hero": info.Hero,
|
||||
}); err != nil {
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user