广告状态区分提现和视频
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user