上传服务器代码

This commit is contained in:
liwei 2023-07-11 16:01:40 +08:00
parent a878db2faf
commit 670ee97952
3 changed files with 6 additions and 6 deletions

View File

@ -46,9 +46,8 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.ArenaInfoReq) (errd
if err == mgo.MongodbNil { if err == mgo.MongodbNil {
global = this.module.ModuleTools.GetGlobalConf() global = this.module.ModuleTools.GetGlobalConf()
info = &pb.DBArenaUser{ info = &pb.DBArenaUser{
Uid: session.GetUserId(), Uid: session.GetUserId(),
Name: user.Name, Name: user.Name,
// Avatar: user.Avatar,
Lv: user.Lv, Lv: user.Lv,
Sex: user.Gender, Sex: user.Gender,
Skin: user.CurSkin, Skin: user.CurSkin,

View File

@ -57,8 +57,9 @@ func (this *modelPasson) getUserPasson(uid string) (results *pb.DBPasson, err er
func (this *modelPasson) updateUserPasson(uid string, data *pb.DBPasson) (err error) { func (this *modelPasson) updateUserPasson(uid string, data *pb.DBPasson) (err error) {
if err = this.Change(uid, map[string]interface{}{ if err = this.Change(uid, map[string]interface{}{
"teacher": data.Teacher, "passonlv": data.Passonlv,
"student": data.Student, "teacher": data.Teacher,
"student": data.Student,
}); err != nil { }); err != nil {
this.module.Error("更新用户任务数据 错误!", log.Field{Key: "err", Value: err.Error()}) this.module.Error("更新用户任务数据 错误!", log.Field{Key: "err", Value: err.Error()})
return return

View File

@ -45,7 +45,7 @@ func (this *ModuleSys) Init(service core.IService, module core.IModule, options
func (this *ModuleSys) Start() (err error) { func (this *ModuleSys) Start() (err error) {
err = this.ModuleBase.Start() err = this.ModuleBase.Start()
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleSys); err != nil { if module, err = this.service.GetModule(comm.ModuleWtask); err != nil {
return return
} }
this.wtask = module.(comm.IWtask) this.wtask = module.(comm.IWtask)