DuGuYang 2 ani în urmă
părinte
comite
143ea1d420

+ 1 - 1
Areas/Admin/Views/MainServer/SysTools/ChangePosFee.cshtml

@@ -39,7 +39,7 @@
                                         <select id="BrandId" name="BrandId" lay-search="">
                                             @foreach (string key in ProfitObjectsActivesDic.Keys)
                                             {
-                                                                <option value="@key">@ProfitObjectsActivesDic[key]</option>
+                                                <option value="@key">@ProfitObjectsActivesDic[key]</option>
                                             }
                                         </select>
                                     </div>

+ 1 - 0
OpModels/SysAdmin.cs

@@ -33,5 +33,6 @@ namespace MySystem.OpModels
         public string AdminName { get; set; }
         public ulong ReturnFlag { get; set; }
         public decimal ReturnAmount { get; set; }
+        public DateTime? ExpireDate { get; set; }
     }
 }

+ 5 - 2
OpModels/WebCMSEntities.cs

@@ -68,8 +68,7 @@ namespace MySystem.OpModels
         {
             if (!optionsBuilder.IsConfigured)
             {
-#warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings.
-                optionsBuilder.UseMySql("server=47.109.31.237;port=3306;user=KxsOpServer;password=r7jwZ8ydLoeswDR4;database=KxsOpServer;charset=utf8", x => x.ServerVersion("5.7.28-mysql"));
+                optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["OpSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
             }
         }
 
@@ -2610,6 +2609,10 @@ namespace MySystem.OpModels
                     .HasCharSet("utf8")
                     .HasCollation("utf8_general_ci");
 
+                entity.Property(e => e.ExpireDate)
+                    .HasColumnType("datetime")
+                    .HasComment("过期时间");
+
                 entity.Property(e => e.FilePath)
                     .HasColumnType("varchar(200)")
                     .HasCharSet("utf8")