This commit is contained in:
aaron 2025-03-26 13:09:04 +08:00
parent 4325d510a4
commit feb59bb540
3 changed files with 9 additions and 1 deletions

View File

@ -47,6 +47,7 @@ from app.core.redis_client import redis_client
from app.models.timeperiod import TimePeriodDB
from app.models.community_timeperiod import CommunityTimePeriodDB
from app.models.community_profit_sharing import CommunityProfitSharing
from app.core.qcloud import QCloudManager
router = APIRouter()
@ -1284,6 +1285,12 @@ async def deliveryman_complete_order(
OrderStatus.COMPLETED
)
qcloud = QCloudManager()
background_tasks.add_task(
qcloud.send_sms_order_complete,
order.address_customer_phone
)
# 发送模板消息
if order.userid:
order_user = db.query(UserDB).filter(

View File

@ -18,7 +18,7 @@ class Settings(BaseSettings):
URL_WECOMBOT_DAILY_REPORT : str = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=6869b6e2-57fc-471a-bb62-028014e2b1c8"
# 企业微信机器人提现申请
URL_WECOMBOT_WITHDRAWAL_APPLY : str = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=a559ed6c-0d75-4a42-b11d-7ab47c929ac5"
# 积分别名
POINT_ALIAS: str = "蜂蜜"
@ -64,6 +64,7 @@ class Settings(BaseSettings):
SMS_SIGN_NAME: str = "蜂快到家公众号"
SMS_TEMPLATE_ID: str = "2353143" # 验证码短信模板ID
SMS_TEMPLATE_ID_ADDITIONAL_FEE: str = "2375181" # 加价短信模板ID
SMS_TEMPLATE_ID_ORDER_COMPLETE: str = "2382882" # 订单完成短信模板ID
# 腾讯云 COS 配置
COS_REGION: str = "ap-chengdu"

Binary file not shown.