Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f212872

Browse files
committed
移除time
1 parent 5d0d793 commit f212872

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

‎APIJSON.NET/APIJSON.NET/Data/DbInit.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public static void Initialize(IApplicationBuilder app)
2626
d.passWordSalt = Guid.NewGuid().ToString();
2727
d.passWord = SimpleStringCipher.Instance.Encrypt("123456", null, Encoding.ASCII.GetBytes(d.passWordSalt));
2828
d.roleCode = "role1";
29-
d.CreateTime = DateTime.Now;
3029
ds.Add(d);
3130
}
3231
db.LoginDb.InsertRange(ds.ToArray());

‎APIJSON.NET/APIJSON.NET/Models/Login.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public class Login
1515
public string passWordSalt { get; set; }
1616
[SugarColumn(Length = 100, ColumnDescription = "权限组")]
1717
public string roleCode { get; set; }
18-
[SugarColumn(Length = 6)]
19-
public DateTime CreateTime { get; set; }
18+
2019
}
2120
}

‎APIJSON.NET/APIJSON.NET/appsettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"ConnectionStrings": {
3-
"DbType": 0, //0:MySql,1:SqlServer,2:Sqlite
4-
"ConnectionString": "Server=localhost; Database=test; User Id=root;Password=password;charset=UTF8;"
3+
"DbType": 1, //0:MySql,1:SqlServer,2:Sqlite
4+
"ConnectionString": "Server=liaozengbo\\sql2018; Database=test; User Id=sa;Password=sa123;"
55
},
66
"Authentication": {
77
"JwtBearer": {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /