diff --git a/bloodybattle/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java b/bloodybattle/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java
index f0757f5e1..2e7a11fcd 100644
--- a/bloodybattle/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java
+++ b/bloodybattle/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java
@@ -87318,6 +87318,24 @@ public final class PlayerInfoProto {
*
*/
int getType();
+
+ // optional int32 activiteId = 2;
+ /**
+ * optional int32 activiteId = 2;
+ *
+ *
+ *活动id + *+ */ + boolean hasActiviteId(); + /** + *
optional int32 activiteId = 2;
+ *
+ * + *活动id + *+ */ + int getActiviteId(); } /** * Protobuf type {@code com.ljsd.jieling.protocols.RankRequest} @@ -87375,6 +87393,11 @@ public final class PlayerInfoProto { type_ = input.readInt32(); break; } + case 16: { + bitField0_ |= 0x00000002; + activiteId_ = input.readInt32(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87439,8 +87462,33 @@ public final class PlayerInfoProto { return type_; } + // optional int32 activiteId = 2; + public static final int ACTIVITEID_FIELD_NUMBER = 2; + private int activiteId_; + /** + *
optional int32 activiteId = 2;
+ *
+ * + *活动id + *+ */ + public boolean hasActiviteId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
optional int32 activiteId = 2;
+ *
+ * + *活动id + *+ */ + public int getActiviteId() { + return activiteId_; + } + private void initFields() { type_ = 0; + activiteId_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -87457,6 +87505,9 @@ public final class PlayerInfoProto { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, type_); } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, activiteId_); + } getUnknownFields().writeTo(output); } @@ -87470,6 +87521,10 @@ public final class PlayerInfoProto { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, type_); } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, activiteId_); + } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; @@ -87588,6 +87643,8 @@ public final class PlayerInfoProto { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); + activiteId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -87620,6 +87677,10 @@ public final class PlayerInfoProto { to_bitField0_ |= 0x00000001; } result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.activiteId_ = activiteId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -87639,6 +87700,9 @@ public final class PlayerInfoProto { if (other.hasType()) { setType(other.getType()); } + if (other.hasActiviteId()) { + setActiviteId(other.getActiviteId()); + } this.mergeUnknownFields(other.getUnknownFields()); return this; } @@ -87715,6 +87779,55 @@ public final class PlayerInfoProto { return this; } + // optional int32 activiteId = 2; + private int activiteId_ ; + /** + *
optional int32 activiteId = 2;
+ *
+ * + *活动id + *+ */ + public boolean hasActiviteId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
optional int32 activiteId = 2;
+ *
+ * + *活动id + *+ */ + public int getActiviteId() { + return activiteId_; + } + /** + *
optional int32 activiteId = 2;
+ *
+ * + *活动id + *+ */ + public Builder setActiviteId(int value) { + bitField0_ |= 0x00000002; + activiteId_ = value; + onChanged(); + return this; + } + /** + *
optional int32 activiteId = 2;
+ *
+ * + *活动id + *+ */ + public Builder clearActiviteId() { + bitField0_ = (bitField0_ & ~0x00000002); + activiteId_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.RankRequest) } @@ -94832,25 +94945,26 @@ public final class PlayerInfoProto { "protocols.Hero\0220\n\005equip\030\002 \003(\0132!.com.ljsd" + ".jieling.protocols.Equip\022B\n\016SpecialEffec" + "ts\030\003 \003(\0132*.com.ljsd.jieling.protocols.Sp" + - "ecialEffects\022\r\n\005force\030\004 \001(\005\"\033\n\013RankReque" + - "st\022\014\n\004type\030\001 \001(\005\"}\n\014RankResponse\0223\n\005rank" + - "s\030\001 \003(\0132$.com.ljsd.jieling.protocols.Use" + - "rRank\0228\n\nmyRankInfo\030\002 \001(\0132$.com.ljsd.jie", - "ling.protocols.RankInfo\")\n\023NextActivityR" + - "equest\022\022\n\nactivityId\030\001 \001(\005\"0\n\024NextActivi" + - "tyResponse\022\n\n\002id\030\001 \001(\005\022\014\n\004time\030\002 \001(\005\"+\n\031" + - "RefreshRechargeIndication\022\016\n\006amount\030\001 \001(" + - "\005\"\024\n\022VipTakeDilyRequest\"E\n\023VipTakeDilyRe" + - "sponse\022.\n\004drop\030\001 \001(\0132 .com.ljsd.jieling." + - "protocols.Drop\"X\n\032MissingRoomRefreshResp" + - "onse\022:\n\005infos\030\001 \003(\0132+.com.ljsd.jieling.p" + - "rotocols.UserMissionInfo\"@\n\032MissingRoomS" + - "endHeroRequest\022\017\n\007heroIds\030\001 \003(\t\022\021\n\tmissi", - "onId\030\002 \001(\005\"1\n\034MissingRoomAccelerateReque" + - "st\022\021\n\tmissionId\030\001 \001(\005\"\037\n\020SexChangeReques" + - "t\022\013\n\003sex\030\001 \001(\005\"\023\n\021SexChangeResponse\"K\n\023P" + - "rivilegeIndication\0224\n\005infos\030\001 \003(\0132%.com." + - "ljsd.jieling.protocols.PrivilegeB\002H\001" + "ecialEffects\022\r\n\005force\030\004 \001(\005\"/\n\013RankReque" + + "st\022\014\n\004type\030\001 \001(\005\022\022\n\nactiviteId\030\002 \001(\005\"}\n\014" + + "RankResponse\0223\n\005ranks\030\001 \003(\0132$.com.ljsd.j" + + "ieling.protocols.UserRank\0228\n\nmyRankInfo\030", + "\002 \001(\0132$.com.ljsd.jieling.protocols.RankI" + + "nfo\")\n\023NextActivityRequest\022\022\n\nactivityId" + + "\030\001 \001(\005\"0\n\024NextActivityResponse\022\n\n\002id\030\001 \001" + + "(\005\022\014\n\004time\030\002 \001(\005\"+\n\031RefreshRechargeIndic" + + "ation\022\016\n\006amount\030\001 \001(\005\"\024\n\022VipTakeDilyRequ" + + "est\"E\n\023VipTakeDilyResponse\022.\n\004drop\030\001 \001(\013" + + "2 .com.ljsd.jieling.protocols.Drop\"X\n\032Mi" + + "ssingRoomRefreshResponse\022:\n\005infos\030\001 \003(\0132" + + "+.com.ljsd.jieling.protocols.UserMission" + + "Info\"@\n\032MissingRoomSendHeroRequest\022\017\n\007he", + "roIds\030\001 \003(\t\022\021\n\tmissionId\030\002 \001(\005\"1\n\034Missin" + + "gRoomAccelerateRequest\022\021\n\tmissionId\030\001 \001(" + + "\005\"\037\n\020SexChangeRequest\022\013\n\003sex\030\001 \001(\005\"\023\n\021Se" + + "xChangeResponse\"K\n\023PrivilegeIndication\0224" + + "\n\005infos\030\001 \003(\0132%.com.ljsd.jieling.protoco" + + "ls.PrivilegeB\002H\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -95606,7 +95720,7 @@ public final class PlayerInfoProto { internal_static_com_ljsd_jieling_protocols_RankRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_ljsd_jieling_protocols_RankRequest_descriptor, - new java.lang.String[] { "Type", }); + new java.lang.String[] { "Type", "ActiviteId", }); internal_static_com_ljsd_jieling_protocols_RankResponse_descriptor = getDescriptor().getMessageTypes().get(125); internal_static_com_ljsd_jieling_protocols_RankResponse_fieldAccessorTable = new diff --git a/serverlogic/src/main/java/com/ljsd/DbClear.java b/serverlogic/src/main/java/com/ljsd/DbClear.java index c7f34a5a4..686c13100 100644 --- a/serverlogic/src/main/java/com/ljsd/DbClear.java +++ b/serverlogic/src/main/java/com/ljsd/DbClear.java @@ -9,12 +9,14 @@ import org.springframework.data.redis.connection.jedis.JedisConnectionFactory; import org.springframework.data.redis.core.StringRedisTemplate; import java.io.*; +import java.net.URL; import java.util.Properties; public class DbClear { public static void main(String[] args) throws IOException { Properties properties = new Properties(); - File file = new File("serverlogic/src/main/resources/application.properties"); + URL resource = DbClear.class.getClassLoader().getResource("application.properties"); + File file = new File(resource.getFile()); //BufferedInputStream bufferedInputStream = new BufferedInputStream(DbClear.class.getResourceAsStream("application.properties")); System.out.println(file.getAbsolutePath()); properties.load(new FileReader(file)); @@ -24,6 +26,7 @@ public class DbClear { mongoClient.dropDatabase(mongoClientURI.getDatabase()); StringRedisTemplate redisTemplate = getRedisTemplate(); redisTemplate.delete(redisTemplate.keys(properties.get("server.id")+"*")); + System.out.println("the mongo url=" + property); } diff --git a/serverlogic/src/main/java/com/ljsd/jieling/handler/GameGM/GMRequestHandler.java b/serverlogic/src/main/java/com/ljsd/jieling/handler/GameGM/GMRequestHandler.java index cc7023b40..6aefde2fc 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/handler/GameGM/GMRequestHandler.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/handler/GameGM/GMRequestHandler.java @@ -112,7 +112,7 @@ public class GMRequestHandler extends BaseHandler{ SCHero scHero = SCHero.getsCHero().get(hero.getTemplateId()); Map