Commit 81b07025e0fa01c4c74d50f8ea39c751a9a4b642
1 parent
5f63a808
Exists in
master
提交
Showing
2 changed files
with
5 additions
and
4 deletions
Show diff stats
src/HttpServer/logic/constdef.go
@@ -49,6 +49,7 @@ const ( | @@ -49,6 +49,7 @@ const ( | ||
49 | ) | 49 | ) |
50 | 50 | ||
51 | const ( | 51 | const ( |
52 | + REDCATIDEXTRA = 37 //红包猫额外id | ||
52 | WATCH_ADD_DAY_LIMIT = 50 //当天获取红包次数限制 | 53 | WATCH_ADD_DAY_LIMIT = 50 //当天获取红包次数限制 |
53 | ACCGOLDRATELIMIT = 3 //玩家每天看视频加速金币次数 | 54 | ACCGOLDRATELIMIT = 3 //玩家每天看视频加速金币次数 |
54 | WATCHADSGOLDLIMIT = 15 //玩家每天看广告领金币限制次数 | 55 | WATCHADSGOLDLIMIT = 15 //玩家每天看广告领金币限制次数 |
src/HttpServer/logic/function.go
@@ -146,21 +146,21 @@ func (u *UserData) DoFlopCardd(resp *DoFlopResp) { | @@ -146,21 +146,21 @@ func (u *UserData) DoFlopCardd(resp *DoFlopResp) { | ||
146 | case FLOPTYPE_45MIN: | 146 | case FLOPTYPE_45MIN: |
147 | addgold = u.Goldrate * 15 * 60 | 147 | addgold = u.Goldrate * 15 * 60 |
148 | case FLOPTYPE_FENCAT15MIN: | 148 | case FLOPTYPE_FENCAT15MIN: |
149 | - catid = 14 + 100 | 149 | + catid = 14 + REDCATIDEXTRA |
150 | ctime = 15 * 60 | 150 | ctime = 15 * 60 |
151 | catfg = jsonconf.GetRedCatConfig(catid) | 151 | catfg = jsonconf.GetRedCatConfig(catid) |
152 | u.SetRedCatPos(catid, ctime, catfg.Money, nowt) | 152 | u.SetRedCatPos(catid, ctime, catfg.Money, nowt) |
153 | case FLOPTYPE_FENCAT10MIN: | 153 | case FLOPTYPE_FENCAT10MIN: |
154 | - catid = 13 + 100 | 154 | + catid = 13 + REDCATIDEXTRA |
155 | ctime = 10 * 60 | 155 | ctime = 10 * 60 |
156 | catfg = jsonconf.GetRedCatConfig(catid) | 156 | catfg = jsonconf.GetRedCatConfig(catid) |
157 | u.SetRedCatPos(catid, ctime, catfg.Money, nowt) | 157 | u.SetRedCatPos(catid, ctime, catfg.Money, nowt) |
158 | case FLOPTYPE_REDCAT: | 158 | case FLOPTYPE_REDCAT: |
159 | - catid = 10 + 100 | 159 | + catid = 10 + REDCATIDEXTRA |
160 | catfg = jsonconf.GetRedCatConfig(catid) | 160 | catfg = jsonconf.GetRedCatConfig(catid) |
161 | u.SetRedCatPos(catid, 0, catfg.Money, 0) | 161 | u.SetRedCatPos(catid, 0, catfg.Money, 0) |
162 | case FLOPTYPE_GLAMCAT: | 162 | case FLOPTYPE_GLAMCAT: |
163 | - catid = 11 + 100 | 163 | + catid = 11 + REDCATIDEXTRA |
164 | catfg = jsonconf.GetRedCatConfig(catid) | 164 | catfg = jsonconf.GetRedCatConfig(catid) |
165 | u.SetRedCatPos(catid, 0, catfg.Money, 0) | 165 | u.SetRedCatPos(catid, 0, catfg.Money, 0) |
166 | } | 166 | } |