mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Optimized code
This commit is contained in:
parent
4f870c6ab7
commit
d810a52b1f
@ -24,6 +24,8 @@ namespace SqlSugar
|
|||||||
internal string url = string.Empty;
|
internal string url = string.Empty;
|
||||||
internal string authorization = string.Empty;
|
internal string authorization = string.Empty;
|
||||||
internal static Random random = new Random();
|
internal static Random random = new Random();
|
||||||
|
//can be modified
|
||||||
|
public static int HttpPort = 9000;
|
||||||
ISqlSugarClient db;
|
ISqlSugarClient db;
|
||||||
public QuestDbRestAPI(ISqlSugarClient db)
|
public QuestDbRestAPI(ISqlSugarClient db)
|
||||||
{
|
{
|
||||||
@ -210,7 +212,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
private void BindHost(string host, string username, string password)
|
private void BindHost(string host, string username, string password)
|
||||||
{
|
{
|
||||||
url = host + ":9000";
|
url = host + ":"+ HttpPort;
|
||||||
if (url.EndsWith("/"))
|
if (url.EndsWith("/"))
|
||||||
url = url.Remove(url.Length - 1);
|
url = url.Remove(url.Length - 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user