Update server information

This commit is contained in:
DingZQ
2024-12-07 16:59:18 +08:00
parent 9e855b4584
commit 65c9913e83
9 changed files with 40306 additions and 5 deletions

109
inp/_temp.inp Normal file
View File

@@ -0,0 +1,109 @@
[TITLE]
[JUNCTIONS]
[RESERVOIRS]
[TANKS]
[PIPES]
[PUMPS]
[VALVES]
[DEMANDS]
[EMITTERS]
[STATUS]
[PATTERNS]
[CURVES]
[CONTROLS]
[ENERGY]
GLOBAL EFFICIENCY 0.7500
GLOBAL PRICE 0.0000
DEMAND CHARGE 0.0000
[QUALITY]
[SOURCES]
[MIXING]

40183
inp/beibei1130_temp.inp Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -14,6 +14,7 @@ from tjnetwork import *
import asyncio import asyncio
import threading import threading
from multiprocessing import Value from multiprocessing import Value
from fastapi.middleware.cors import CORSMiddleware
JUNCTION = 0 JUNCTION = 0
RESERVOIR = 1 RESERVOIR = 1
@@ -36,6 +37,14 @@ if not os.path.exists(tmpDir):
app = FastAPI() app = FastAPI()
# 配置 CORS 中间件
app.add_middleware(
CORSMiddleware,
allow_origins=["*"], # 允许所有来源
allow_credentials=True, # 允许传递凭证Cookie、HTTP 头等)
allow_methods=["*"], # 允许所有 HTTP 方法
allow_headers=["*"], # 允许所有 HTTP 头
)
# 定义一个共享变量 # 定义一个共享变量
lock_simulation = Value('i', 0) lock_simulation = Value('i', 0)

View File

@@ -1,3 +1,3 @@
d: C:
cd "d:\postgresql14\bin" cd "C:\pg-14.7\bin"
pg_ctl -D ../data -l logfile start pg_ctl -D ../data -l logfile start

View File

@@ -1,3 +1,3 @@
f: REM f:
cd "f:\DEV\GitHub\TJWaterServer" REM cd "f:\DEV\GitHub\TJWaterServer"
uvicorn main:app --host 0.0.0.0 --port 8000 --reload uvicorn main:app --host 0.0.0.0 --port 80 --reload

BIN
temp/MD-2.db.out Normal file

Binary file not shown.

BIN
temp/beibei_0419.db.out Normal file

Binary file not shown.

Binary file not shown.

BIN
temp/fengxian_cloud.db.out Normal file

Binary file not shown.