update
This commit is contained in:
parent
6e3c3c3e09
commit
429bb78457
@ -128,11 +128,11 @@ async def get_stock_data_all(stock_code: str):
|
||||
async def get_stock_analysis(stock_code: str, current_user: Dict[str, Any] = Depends(get_current_user)):
|
||||
|
||||
# 检查stock_code是否存在
|
||||
codes = get_db_manager().search_stock(stock_code)
|
||||
if not codes or len(codes) == 0:
|
||||
raise HTTPException(status_code=400, detail="您输入的股票代码不存在,请检查后重新输入。")
|
||||
# codes = get_db_manager().search_stock(stock_code)
|
||||
# if not codes or len(codes) == 0:
|
||||
# raise HTTPException(status_code=400, detail="您输入的股票代码不存在,请检查后重新输入。")
|
||||
|
||||
stock_code = codes[0]["stock_code"]
|
||||
# stock_code = codes[0]["stock_code"]
|
||||
|
||||
url = 'https://mate.aimateplus.com/v1/workflows/run'
|
||||
token = 'app-nWuCOa0YfQVtAosTY3Jr5vFV'
|
||||
|
||||
@ -29,7 +29,7 @@ services:
|
||||
cryptoai-api:
|
||||
build: .
|
||||
container_name: cryptoai-api
|
||||
image: cryptoai-api:0.1.20
|
||||
image: cryptoai-api:0.1.21
|
||||
restart: always
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user