diff --git a/app/api/endpoints/order.py b/app/api/endpoints/order.py index c13c84f..301765b 100644 --- a/app/api/endpoints/order.py +++ b/app/api/endpoints/order.py @@ -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( diff --git a/app/core/config.py b/app/core/config.py index d596833..e88ad32 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -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" diff --git a/jobs.sqlite b/jobs.sqlite index 0ec0755..cf0a24a 100644 Binary files a/jobs.sqlite and b/jobs.sqlite differ