|
@ -3,6 +3,7 @@ package awesome.group.game.service.citrus; |
|
|
import awesome.group.game.dao.bean.*; |
|
|
import awesome.group.game.dao.bean.*; |
|
|
import awesome.group.game.dao.mapper.*; |
|
|
import awesome.group.game.dao.mapper.*; |
|
|
import awesome.group.game.service.bo.MatrixAdvRecordEditBo; |
|
|
import awesome.group.game.service.bo.MatrixAdvRecordEditBo; |
|
|
|
|
|
import awesome.group.game.service.bo.MatrixAdvRecordSimple; |
|
|
import awesome.group.game.service.bo.citrus.AdvResponse; |
|
|
import awesome.group.game.service.bo.citrus.AdvResponse; |
|
|
import awesome.group.game.service.bo.matrix.AppNormalConfig; |
|
|
import awesome.group.game.service.bo.matrix.AppNormalConfig; |
|
|
import awesome.group.game.service.common.exception.PaganiException; |
|
|
import awesome.group.game.service.common.exception.PaganiException; |
|
@ -101,7 +102,7 @@ public class AdvRecordService { |
|
|
return new AdvResponse(ecpmReal, user); |
|
|
return new AdvResponse(ecpmReal, user); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public AdvResponse saveRecordV4(Integer uid, MatrixAdvRecordEditBo bo, String ip) { |
|
|
public MatrixAdvRecordSimple saveRecordV4(Integer uid, MatrixAdvRecordEditBo bo, String ip) { |
|
|
Assert.isTrue((System.currentTimeMillis() / 1000) - bo.timestamp < 30, "非法请求"); |
|
|
Assert.isTrue((System.currentTimeMillis() / 1000) - bo.timestamp < 30, "非法请求"); |
|
|
Assert.isTrue(StringUtils.hasText(bo.appCode) && StringUtils.hasText(bo.sign), "非法请求"); |
|
|
Assert.isTrue(StringUtils.hasText(bo.appCode) && StringUtils.hasText(bo.sign), "非法请求"); |
|
|
MatrixApp app = appMapper.queryByCode(bo.appCode); |
|
|
MatrixApp app = appMapper.queryByCode(bo.appCode); |
|
@ -146,8 +147,7 @@ public class AdvRecordService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
mapper.insert(record); |
|
|
mapper.insert(record); |
|
|
MatrixUser user = userMapper.selectById(uid); |
|
|
return new MatrixAdvRecordSimple(mapper.selectById(record.getId())); |
|
|
return new AdvResponse(ecpmReal, user); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|