From 040f8737b3f4336833132cbc5cc63ec8669082b9 Mon Sep 17 00:00:00 2001 From: Pine Date: Wed, 9 Sep 2026 22:58:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E4=B8=80=E9=94=AE=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E8=B0=83=E7=94=A8=E5=BE=AE=E4=BF=A1API?= =?UTF-8?q?=E5=AF=BC=E8=87=B4code=E4=BA=8C=E6=AC=A1=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/training/main.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/training/main.py b/app/training/main.py index 709e334..8ff78d7 100644 --- a/app/training/main.py +++ b/app/training/main.py @@ -480,9 +480,6 @@ async def wx_phone(req: Request, authorization: str = Header(default="")): if not token: raise HTTPException(400, "微信 access_token 获取失败,请检查 AppID/Secret 配置") url = f"https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token={token}" - async with httpx.AsyncClient(timeout=10) as client: - r = await client.post(url, json={"code": pcode}) - data = r.json() async with httpx.AsyncClient(timeout=10) as client: r = await client.post(url, json={"code": pcode}) data = r.json()