back_recharge
zhangshanxue 2019-09-16 15:40:28 +08:00
commit d5c1d89021
3 changed files with 4 additions and 2 deletions

View File

@ -21,13 +21,13 @@ public class MongoConfig {
// 注入配置实体
@Autowired
private MongoSettingsProperties mongoSettingsProperties;
@Bean
@ConfigurationProperties(
prefix = "mongodb.options")
MongoSettingsProperties mongoSettingsProperties() {
return new MongoSettingsProperties();
mongoSettingsProperties =new MongoSettingsProperties();
return mongoSettingsProperties;
}
@Value("${spring.data.mongodb.uri}")

View File

@ -90,6 +90,7 @@ public class ChatLogic {
* @param message
*/
public void sendChatMessage(ISession iSession, int chatType, String message,int friendId) throws Exception {
System.out.println("the uid=" + iSession.getUid() + "send msg =" +message);
int msgId = MessageTypeProto.MessageType.SEND_CHAT_INFO_RESPONSE_VALUE;
int uid = iSession.getUid();
User user = UserManager.getUser(uid);

View File

@ -162,6 +162,7 @@ public class HeroLogic {
public void random(ISession session,int type) throws Exception {
LOGGER.info("test randomxxxxx... the type={} ",type);
int uid = session.getUid();
User user = UserManager.getUser(uid);
SLotterySetting sLotterySetting = SLotterySetting.getsLotterySettingMap().get(type);