Эх сурвалжийг харах

Merge pull request #54 from Viagi/master

修复ComponentFactory.CreateWithId<RechargeRecord>(id)抛找不到无参构造函数的问题
tanghai 7 жил өмнө
parent
commit
671062dffc

+ 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)
 		{
 		}
 	}