上传工会会长信息

This commit is contained in:
liwei1dao 2023-12-05 15:34:23 +08:00
parent 62068abdee
commit 92417c2442
2 changed files with 7 additions and 3 deletions

View File

@ -14,7 +14,7 @@ import (
const ( const (
//game_gamecolor = "game_gamecolor.json" //颜色表 //game_gamecolor = "game_gamecolor.json" //颜色表
game_playerlv = "game_playerlv.json" //玩家等级 game_playerlv = "game_playerlv.json" //玩家等级
//game_facemod = "game_facemod.json" //形象配置表 //game_facemod = "game_facemod.json" //形象配置表
game_drop = "game_drop.json" //掉落 game_drop = "game_drop.json" //掉落
new_hero = "game_hero.json" new_hero = "game_hero.json"
// 签到 // 签到

View File

@ -74,10 +74,10 @@ func (this *apiComp) Mine(session comm.IUserSession, req *pb.SociatyMineReq) (er
} }
} }
} }
master := this.module.modelSociaty.getMasterInfo(sociaty)
if sociaty.AccuseTime > 0 { if sociaty.AccuseTime > 0 {
// 获取会长 // 获取会长
master := this.module.modelSociaty.getMasterInfo(sociaty)
if master != nil { if master != nil {
if master.Uid == session.GetUserId() { //自己是会长 if master.Uid == session.GetUserId() { //自己是会长
sociaty.AccuseTime = 0 sociaty.AccuseTime = 0
@ -99,7 +99,11 @@ func (this *apiComp) Mine(session comm.IUserSession, req *pb.SociatyMineReq) (er
rsp.Master = master rsp.Master = master
} }
} }
} else {
rsp.Master = master
} }
} else {
rsp.Master = master
} }
rsp.Sociaty = sociaty rsp.Sociaty = sociaty
session.SendMsg(string(this.module.GetType()), SociatySubTypeMine, rsp) session.SendMsg(string(this.module.GetType()), SociatySubTypeMine, rsp)