Optimized code

This commit is contained in:
sunkaixuan 2024-03-25 15:37:01 +08:00
parent 4f870c6ab7
commit d810a52b1f

View File

@ -24,6 +24,8 @@ namespace SqlSugar
internal string url = string.Empty;
internal string authorization = string.Empty;
internal static Random random = new Random();
//can be modified
public static int HttpPort = 9000;
ISqlSugarClient db;
public QuestDbRestAPI(ISqlSugarClient db)
{
@ -210,7 +212,7 @@ namespace SqlSugar
}
private void BindHost(string host, string username, string password)
{
url = host + ":9000";
url = host + ":"+ HttpPort;
if (url.EndsWith("/"))
url = url.Remove(url.Length - 1);