diff --git a/modules/mainline/api_booschallengeover.go b/modules/mainline/api_booschallengeover.go index 4e50ab3d9..a0daa091c 100644 --- a/modules/mainline/api_booschallengeover.go +++ b/modules/mainline/api_booschallengeover.go @@ -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 } - - info.Chapterboos[conf.MonsterChapter] = conf.MonsterStrength + 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, diff --git a/services/cmd/main.go b/services/cmd/main.go index bef381597..b25b6dccf 100644 --- a/services/cmd/main.go +++ b/services/cmd/main.go @@ -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,