Преглед изворни кода

修复ComponentFactory.CreateWithId<RechargeRecord>(id)抛找不到无参构造函数的问题

Lucky пре 7 година
родитељ
комит
28e575174c
1 измењених фајлова са 10 додато и 2 уклоњено
  1. 10 2
      Server/Model/Entity/Http.cs

+ 10 - 2
Server/Model/Entity/Http.cs

@@ -12,7 +12,11 @@
 		// 充值时间
 		public long Time { get; set; }
 
-		public RechargeRecord(long id) : base(id)
+        public RechargeRecord() : base()
+        {
+        }
+
+        public RechargeRecord(long id) : base(id)
 		{
 		}
 	}
@@ -24,7 +28,11 @@
 
 		public long UpdateTime { get; set; }
 
-		public Recharge(long id) : base(id)
+        public Recharge() : base()
+        {
+        }
+
+        public Recharge(long id) : base(id)
 		{
 		}
 	}