update
This commit is contained in:
parent
4325d510a4
commit
feb59bb540
@ -47,6 +47,7 @@ from app.core.redis_client import redis_client
|
|||||||
from app.models.timeperiod import TimePeriodDB
|
from app.models.timeperiod import TimePeriodDB
|
||||||
from app.models.community_timeperiod import CommunityTimePeriodDB
|
from app.models.community_timeperiod import CommunityTimePeriodDB
|
||||||
from app.models.community_profit_sharing import CommunityProfitSharing
|
from app.models.community_profit_sharing import CommunityProfitSharing
|
||||||
|
from app.core.qcloud import QCloudManager
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
@ -1284,6 +1285,12 @@ async def deliveryman_complete_order(
|
|||||||
OrderStatus.COMPLETED
|
OrderStatus.COMPLETED
|
||||||
)
|
)
|
||||||
|
|
||||||
|
qcloud = QCloudManager()
|
||||||
|
background_tasks.add_task(
|
||||||
|
qcloud.send_sms_order_complete,
|
||||||
|
order.address_customer_phone
|
||||||
|
)
|
||||||
|
|
||||||
# 发送模板消息
|
# 发送模板消息
|
||||||
if order.userid:
|
if order.userid:
|
||||||
order_user = db.query(UserDB).filter(
|
order_user = db.query(UserDB).filter(
|
||||||
|
|||||||
@ -64,6 +64,7 @@ class Settings(BaseSettings):
|
|||||||
SMS_SIGN_NAME: str = "蜂快到家公众号"
|
SMS_SIGN_NAME: str = "蜂快到家公众号"
|
||||||
SMS_TEMPLATE_ID: str = "2353143" # 验证码短信模板ID
|
SMS_TEMPLATE_ID: str = "2353143" # 验证码短信模板ID
|
||||||
SMS_TEMPLATE_ID_ADDITIONAL_FEE: str = "2375181" # 加价短信模板ID
|
SMS_TEMPLATE_ID_ADDITIONAL_FEE: str = "2375181" # 加价短信模板ID
|
||||||
|
SMS_TEMPLATE_ID_ORDER_COMPLETE: str = "2382882" # 订单完成短信模板ID
|
||||||
|
|
||||||
# 腾讯云 COS 配置
|
# 腾讯云 COS 配置
|
||||||
COS_REGION: str = "ap-chengdu"
|
COS_REGION: str = "ap-chengdu"
|
||||||
|
|||||||
BIN
jobs.sqlite
BIN
jobs.sqlite
Binary file not shown.
Loading…
Reference in New Issue
Block a user