diff --git a/game/src/main/java/com/ccsens/game/bean/dto/message/AuthMessageDto.java b/game/src/main/java/com/ccsens/game/bean/dto/message/AuthMessageDto.java index dd9c5f29..d691445c 100644 --- a/game/src/main/java/com/ccsens/game/bean/dto/message/AuthMessageDto.java +++ b/game/src/main/java/com/ccsens/game/bean/dto/message/AuthMessageDto.java @@ -2,13 +2,12 @@ package com.ccsens.game.bean.dto.message; import com.ccsens.util.WebConstant; import lombok.Data; -import lombok.Getter; -import lombok.Setter; @Data public class AuthMessageDto extends BaseMessageDto { @lombok.Data public static class Data{ + //游戏id private String id; private String userId; private String channelId; diff --git a/game/src/main/java/com/ccsens/game/service/ScreenService.java b/game/src/main/java/com/ccsens/game/service/ScreenService.java index 518943aa..97a711dc 100644 --- a/game/src/main/java/com/ccsens/game/service/ScreenService.java +++ b/game/src/main/java/com/ccsens/game/service/ScreenService.java @@ -1180,7 +1180,7 @@ public class ScreenService implements IScreenService { } // //再玩一次 // if (start.getStartStatus() != null && start.getStartStatus().byteValue() == GameConstant.GAME_RESTART_STATUS) { -// //再玩一次,设置参见的用户为无效用户 +// //再玩一次,设置参加的用户为无效用户 // GameUserJoin delUserJoin = new GameUserJoin(); // delUserJoin.setRecStatus(WebConstant.REC_STATUS.Deleted.value); // GameUserJoinExample example = new GameUserJoinExample(); @@ -1468,6 +1468,7 @@ public class ScreenService implements IScreenService { gameRecord.setId(snowflake.nextId()); gameRecord.setUserPayId(gameUserPay.getId()); gameRecord.setGameGroup((byte) 0); +// gameRecord.setGameStatus((byte) 1); //添加路径 String gameUrl = PropUtil.notGatewayUrl + WebConstant.TEST_URL_GAME_SQ; switch (gameType.getCode()){ @@ -1495,15 +1496,11 @@ public class ScreenService implements IScreenService { gameGroupBlue.setCode(GameConstant.SECOND_GROUP); gameGroupDao.insertSelective(gameGroupBlue); } - - //5、查询该游戏的规则 - List ruleList = getGameActivityRule(gameType.getId()); - //6、返回 - ScreenVo.UrlVo urlVo = new ScreenVo.UrlVo(); - urlVo.setId(gameRecord.getId()); - urlVo.setUrl(gameRecord.getUrl()); - urlVo.setRuleList(ruleList); - + ScreenDto.Start start = new ScreenDto.Start(); + start.setLocalTime(System.currentTimeMillis()); + start.setMemberRecord(gameRecord.getId()); + start.setStartStatus((byte) 1); + startGame(start); return gameRecord.getId(); } } diff --git a/game/src/main/resources/application.yml b/game/src/main/resources/application.yml index d082c0ea..5c2cd5c4 100644 --- a/game/src/main/resources/application.yml +++ b/game/src/main/resources/application.yml @@ -1,4 +1,4 @@ spring: profiles: - active: prod - include: common, util-prod \ No newline at end of file + active: dev + include: common, util-dev \ No newline at end of file diff --git a/tall/src/main/java/com/ccsens/tall/service/SysDomainService.java b/tall/src/main/java/com/ccsens/tall/service/SysDomainService.java index 07343a94..61ad04d0 100644 --- a/tall/src/main/java/com/ccsens/tall/service/SysDomainService.java +++ b/tall/src/main/java/com/ccsens/tall/service/SysDomainService.java @@ -63,7 +63,7 @@ public class SysDomainService implements ISysDomainService{ if(ObjectUtil.isNull(domainInfo)){ domainInfo = new DomainVo.DomainInfo(); domainInfo.setDomainName(PropUtil.notGatewayUrl + "gateway/tall/v1.0"); - domainInfo.setLogo("https://test.tall.wiki/staticrec/logo.png"); + domainInfo.setLogo(PropUtil.notGatewayUrl+"staticrec/logo.png"); domainInfo.setCompanyName("传控电子科技有限公司"); domainInfo.setSystemName("TALL时物链条"); domainInfo.setBackdropUrl(""); diff --git a/tall/src/main/java/com/ccsens/tall/service/UserService.java b/tall/src/main/java/com/ccsens/tall/service/UserService.java index 28c78eec..4f357332 100644 --- a/tall/src/main/java/com/ccsens/tall/service/UserService.java +++ b/tall/src/main/java/com/ccsens/tall/service/UserService.java @@ -362,8 +362,7 @@ public class UserService implements IUserService { SysAuth theAuth; SysAuthExample authExample = new SysAuthExample(); authExample.createCriteria() - .andIdentifierEqualTo(username) - .andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Account.value); + .andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Account.value).andIdentifierEqualTo(username); authList = authDao.selectByExample(authExample); if (CollectionUtil.isNotEmpty(authList)) { theAuth = authList.get(0); @@ -427,7 +426,7 @@ public class UserService implements IUserService { } SysAuthExample authExample = new SysAuthExample(); - authExample.createCriteria().andIdentifierEqualTo(openId).andIdentifyTypeEqualTo(identifyType); + authExample.createCriteria().andIdentifyTypeEqualTo(identifyType).andIdentifierEqualTo(openId); authList = authDao.selectByExample(authExample); long end1 = System.currentTimeMillis(); log.info("查auth表耗时:{}",end1 - start); @@ -698,8 +697,7 @@ public class UserService implements IUserService { //检查手机号是否已被注册 SysAuthExample authExample = new SysAuthExample(); authExample.createCriteria() - .andIdentifierEqualTo(userSignup.getPhone()) - .andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Phone.value); + .andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Phone.value).andIdentifierEqualTo(userSignup.getPhone()); List authList = authDao.selectByExample(authExample); if (CollectionUtil.isEmpty(authList)) { //验证账号是否被注册 @@ -1036,8 +1034,8 @@ public class UserService implements IUserService { public Long selectUserIdByPhone(String phoneCell) { Long userId = null; SysAuthExample authExample = new SysAuthExample(); - authExample.createCriteria().andIdentifierEqualTo(phoneCell) - .andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Phone.value); + authExample.createCriteria() + .andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Phone.value).andIdentifierEqualTo(phoneCell); List authList = authDao.selectByExample(authExample); if (CollectionUtil.isNotEmpty(authList)) { userId = authList.get(0).getUserId(); @@ -1053,8 +1051,8 @@ public class UserService implements IUserService { String account = null; if (StrUtil.isNotEmpty(phone)) { SysAuthExample authExample = new SysAuthExample(); - authExample.createCriteria().andIdentifierEqualTo(phone) - .andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Phone.value); + authExample.createCriteria() + .andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Phone.value).andIdentifierEqualTo(phone); List authList = authDao.selectByExample(authExample); if (CollectionUtil.isNotEmpty(authList)) { SysAuthExample authExample1 = new SysAuthExample(); @@ -1151,8 +1149,7 @@ public class UserService implements IUserService { //检查手机号是否已被注册 SysAuthExample authExample = new SysAuthExample(); authExample.createCriteria() - .andIdentifierEqualTo(signup.getPhone()) - .andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Phone.value); + .andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Phone.value).andIdentifierEqualTo(signup.getPhone()); List authList = authDao.selectByExample(authExample); if (CollectionUtil.isNotEmpty(authList)) { log.info("用户已存在,直接返回user"); @@ -1567,7 +1564,7 @@ public class UserService implements IUserService { if(StrUtil.isNotEmpty(userSignup.getAccount())){ accountName = userSignup.getAccount(); SysAuthExample sysAuthExample = new SysAuthExample(); - sysAuthExample.createCriteria().andIdentifierEqualTo(accountName).andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Account.value); + sysAuthExample.createCriteria().andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Account.value).andIdentifierEqualTo(accountName); List authList = authDao.selectByExample(sysAuthExample); if(CollectionUtil.isNotEmpty(authList)){ throw new BaseException(CodeEnum.ALREADY_EXIST_ACCOUNT);