diff --git a/src/HttpServer/logic/constdef.go b/src/HttpServer/logic/constdef.go index ae86383..bfc6d47 100644 --- a/src/HttpServer/logic/constdef.go +++ b/src/HttpServer/logic/constdef.go @@ -49,6 +49,7 @@ const ( ) const ( + REDCATIDEXTRA = 37 //红包猫额外id WATCH_ADD_DAY_LIMIT = 50 //当天获取红包次数限制 ACCGOLDRATELIMIT = 3 //玩家每天看视频加速金币次数 WATCHADSGOLDLIMIT = 15 //玩家每天看广告领金币限制次数 diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index 7726265..ab33ad4 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -146,21 +146,21 @@ func (u *UserData) DoFlopCardd(resp *DoFlopResp) { case FLOPTYPE_45MIN: addgold = u.Goldrate * 15 * 60 case FLOPTYPE_FENCAT15MIN: - catid = 14 + 100 + catid = 14 + REDCATIDEXTRA ctime = 15 * 60 catfg = jsonconf.GetRedCatConfig(catid) u.SetRedCatPos(catid, ctime, catfg.Money, nowt) case FLOPTYPE_FENCAT10MIN: - catid = 13 + 100 + catid = 13 + REDCATIDEXTRA ctime = 10 * 60 catfg = jsonconf.GetRedCatConfig(catid) u.SetRedCatPos(catid, ctime, catfg.Money, nowt) case FLOPTYPE_REDCAT: - catid = 10 + 100 + catid = 10 + REDCATIDEXTRA catfg = jsonconf.GetRedCatConfig(catid) u.SetRedCatPos(catid, 0, catfg.Money, 0) case FLOPTYPE_GLAMCAT: - catid = 11 + 100 + catid = 11 + REDCATIDEXTRA catfg = jsonconf.GetRedCatConfig(catid) u.SetRedCatPos(catid, 0, catfg.Money, 0) } -- libgit2 0.21.0