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(
|
||||||
|
|||||||
@ -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_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"
|
URL_WECOMBOT_WITHDRAWAL_APPLY : str = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=a559ed6c-0d75-4a42-b11d-7ab47c929ac5"
|
||||||
|
|
||||||
|
|
||||||
# 积分别名
|
# 积分别名
|
||||||
POINT_ALIAS: str = "蜂蜜"
|
POINT_ALIAS: str = "蜂蜜"
|
||||||
@ -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