Skip to content
Prev Previous commit
Next Next commit
移除time
  • Loading branch information
liaozb committed Jul 25, 2018
commit f212872b3fa358fbabb8872f86df54167bbca880
1 change: 0 additions & 1 deletion APIJSON.NET/APIJSON.NET/Data/DbInit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public static void Initialize(IApplicationBuilder app)
d.passWordSalt = Guid.NewGuid().ToString();
d.passWord = SimpleStringCipher.Instance.Encrypt("123456", null, Encoding.ASCII.GetBytes(d.passWordSalt));
d.roleCode = "role1";
d.CreateTime = DateTime.Now;
ds.Add(d);
}
db.LoginDb.InsertRange(ds.ToArray());
Expand Down
3 changes: 1 addition & 2 deletions APIJSON.NET/APIJSON.NET/Models/Login.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class Login
public string passWordSalt { get; set; }
[SugarColumn(Length = 100, ColumnDescription = "权限组")]
public string roleCode { get; set; }
[SugarColumn(Length = 6)]
public DateTime CreateTime { get; set; }

}
}
4 changes: 2 additions & 2 deletions APIJSON.NET/APIJSON.NET/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ConnectionStrings": {
"DbType": 0, //0:MySql,1:SqlServer,2:Sqlite
"ConnectionString": "Server=localhost; Database=test; User Id=root;Password=password;charset=UTF8;"
"DbType": 1, //0:MySql,1:SqlServer,2:Sqlite
"ConnectionString": "Server=liaozengbo\\sql2018; Database=test; User Id=sa;Password=sa123;"
},
"Authentication": {
"JwtBearer": {
Expand Down