Merge branch 'dev' into test
This commit is contained in:
commit
9b14002c71
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -915,6 +915,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
|||
}
|
||||
userInfo.setUpdateTime(DateUtil.date().toString());
|
||||
baseMapper.updateById(userInfo);
|
||||
userInfo.setQdCode(userInfo.getQdCode() == null ? "" : userInfo.getQdCode());
|
||||
return getResult(userInfo);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -167,10 +167,6 @@ public class DiscSpinningServiceImpl extends ServiceImpl<DiscSpinningDao, DiscSp
|
|||
}
|
||||
}
|
||||
|
||||
if (result.getName().contains("手机")) {
|
||||
throw new RuntimeException("抽奖数据异常,请稍后再试");
|
||||
}
|
||||
|
||||
DiscSpinningRecord record = new DiscSpinningRecord(result.getName(), sourceId, userId, result.getUrl(), result.getType(),
|
||||
result.getNumber(), DateUtils.formatYMD(new Date()), DateUtils.format(new Date()), source);
|
||||
recordService.save(record);
|
||||
|
|
@ -181,7 +177,7 @@ public class DiscSpinningServiceImpl extends ServiceImpl<DiscSpinningDao, DiscSp
|
|||
|
||||
@Override
|
||||
public void receive1(DiscSpinningRecord receive) {
|
||||
if (recordService.countDraw(receive.getUserId()) > 10) {
|
||||
if (recordService.countDraw(receive.getUserId()) > Integer.parseInt(commonRepository.findOne(901).getValue())) {
|
||||
return;
|
||||
}
|
||||
DiscSpinningRecord record = recordService.getById(receive.getId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue