debug
All checks were successful
Deploy to Server / deploy (push) Successful in 35s

This commit is contained in:
jeremygan2021
2026-02-16 20:31:51 +08:00
parent b2f9545fdd
commit eb3655acd1
3 changed files with 31 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ CORS_ALLOW_ALL_ORIGINS = True
CSRF_TRUSTED_ORIGINS = [
"https://market.quant-speed.com",
"http://market.quant-speed.com",
"http://localhost:8000",
]
ROOT_URLCONF = 'config.urls'
@@ -99,7 +100,7 @@ DATABASES = {
}
# 从环境变量获取数据库配置 (Docker 环境会自动注入这些变量)
DB_HOST = os.environ.get('DB_HOST', '6.6.6.66')
DB_HOST = os.environ.get('DB_HOST', '121.43.104.161')
if DB_HOST:
DATABASES['default'] = {
'ENGINE': 'django.db.backends.postgresql',
@@ -107,7 +108,7 @@ if DB_HOST:
'USER': os.environ.get('DB_USER', 'market'),
'PASSWORD': os.environ.get('DB_PASSWORD', '123market'),
'HOST': DB_HOST,
'PORT': os.environ.get('DB_PORT', '5432'),
'PORT': os.environ.get('DB_PORT', '6433'),
}
@@ -307,6 +308,11 @@ UNFOLD = {
"icon": "payment",
"link": reverse_lazy("admin:shop_wechatpayconfig_changelist"),
},
{
"title": "管理员通知手机号",
"icon": "contact_phone",
"link": reverse_lazy("admin:shop_adminphonenumber_changelist"),
},
{
"title": "用户认证",
"icon": "security",

View File

@@ -95,4 +95,5 @@ def notify_user_order_shipped(order):
}
print(f"准备发送用户发货通知: {order.phone_number}")
send_sms(order.phone_number, "SMS_501650557", params)
#send_sms(order.phone_number, "SMS_501650557", params)
send_sms(order.phone_number, "SMS_501665569", params)