广告状态区分提现和视频

This commit is contained in:
张松 2025-02-05 10:34:44 +08:00
parent 313a2f9745
commit ce68fa2753
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public class AdController extends AbstractController {
@GetMapping("/state")
public Result getAdState(@RequestParam String extraKey, @RequestAttribute Long userId) {
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);
info.put("isEnded", 1);
}