update
This commit is contained in:
parent
aae9b5e7df
commit
6e6ef7fc9f
@ -6,7 +6,7 @@ class Settings(BaseSettings):
|
|||||||
API_V1_STR: str = "/api/v1"
|
API_V1_STR: str = "/api/v1"
|
||||||
PROJECT_NAME: str = "FastAPI 项目"
|
PROJECT_NAME: str = "FastAPI 项目"
|
||||||
|
|
||||||
API_BASE_URL: str = "https://api.beefast.co"
|
API_BASE_URL: str = "https://api-dev.beefast.co"
|
||||||
|
|
||||||
# 订单价格配置
|
# 订单价格配置
|
||||||
ORDER_BASE_PRICE: float = 3.0 # 基础费用
|
ORDER_BASE_PRICE: float = 3.0 # 基础费用
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import aiohttp
|
import aiohttp
|
||||||
|
from fastapi import Request
|
||||||
from app.core.config import settings
|
from app.core.config import settings
|
||||||
import requests
|
import requests
|
||||||
from cryptography.hazmat.primitives.asymmetric import padding
|
from cryptography.hazmat.primitives.asymmetric import padding
|
||||||
@ -94,7 +95,6 @@ class WeChatClient:
|
|||||||
"country_code": phone_info.get("countryCode"),
|
"country_code": phone_info.get("countryCode"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async def code2session(self, code: str) -> dict:
|
async def code2session(self, code: str) -> dict:
|
||||||
"""通过 code 获取用户 openid"""
|
"""通过 code 获取用户 openid"""
|
||||||
url = f"https://api.weixin.qq.com/sns/jscode2session"
|
url = f"https://api.weixin.qq.com/sns/jscode2session"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user