This commit is contained in:
meixiongfeng 2023-09-06 11:16:21 +08:00
commit f2c318f5d0
2 changed files with 7 additions and 6 deletions

View File

@ -67,8 +67,9 @@ func (this *apiComp) BoosChallengeOver(session comm.IUserSession, req *pb.Mainli
this.module.Debugf("Mline Boos DispenseRes err:+%v", conf.Reward)
return
}
if info.Chapterboos[conf.MonsterChapter] < conf.MonsterStrength {
info.Chapterboos[conf.MonsterChapter] = conf.MonsterStrength
}
info.Currbooschallengenum++
if err = this.module.modelMline.Change(session.GetUserId(), map[string]interface{}{
"chapterboos": info.Chapterboos,

View File

@ -29,7 +29,7 @@ var (
gmpath string //服务列表下标
crosspath string //服务列表下标
sid string //服务列表下标
onelog bool //日志路径
openlog bool //日志路径
)
var confCmd = &cobra.Command{
Use: "conf",
@ -79,7 +79,7 @@ func init() {
RootCmd.PersistentFlags().StringVarP(&gmpath, "gm", "g", "./gm.json", "游戏区服配置")
RootCmd.PersistentFlags().StringVarP(&crosspath, "cross", "c", "./cross.json", "游戏跨服配置")
RootCmd.PersistentFlags().StringVarP(&sid, "sid", "i", "", "区服id")
RootCmd.PersistentFlags().BoolVarP(&onelog, "log", "l", false, "输出日志")
RootCmd.PersistentFlags().BoolVarP(&openlog, "log", "l", false, "输出日志")
RootCmd.AddCommand(confCmd, startCmd, stopCmd, restart)
}
@ -340,7 +340,7 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
}
}
if !onelog {
if openlog {
sseting.Sys["rpcx"]["Debug"] = true
sseting.Sys["log"] = map[string]interface{}{
"FileName": fmt.Sprintf("./log/%s.log", sseting.Id),
@ -351,7 +351,7 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
} else {
sseting.Sys["log"] = map[string]interface{}{
"Alias": sseting.Id,
"FileName": "./s.log",
"FileName": fmt.Sprintf("./log/%s.log", sseting.Id),
"IsDebug": false,
"Loglevel": log.ErrorLevel,
"MaxAgeTime": 7,