广告状态区分提现和视频
This commit is contained in:
parent
313a2f9745
commit
ce68fa2753
|
|
@ -28,7 +28,7 @@ public class AdController extends AbstractController {
|
||||||
@GetMapping("/state")
|
@GetMapping("/state")
|
||||||
public Result getAdState(@RequestParam String extraKey, @RequestAttribute Long userId) {
|
public Result getAdState(@RequestParam String extraKey, @RequestAttribute Long userId) {
|
||||||
HashMap<String, Integer> info = callbackRecordService.getStateByExtraKey(userId, extraKey);
|
HashMap<String, Integer> info = callbackRecordService.getStateByExtraKey(userId, extraKey);
|
||||||
if (info.get("isEnded") == 0 && !redisService.isCanCash(userId)) {
|
if (info.get("isEnded") == 0 && !redisService.isCanCash(userId) && extraKey.contains("cash")) {
|
||||||
redisService.setCanCashFlag(userId, -1L);
|
redisService.setCanCashFlag(userId, -1L);
|
||||||
info.put("isEnded", 1);
|
info.put("isEnded", 1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue