This commit is contained in:
xiaoma
2026-02-10 21:40:05 +08:00
parent 5948e2998d
commit ee88c5b3e1
7 changed files with 28 additions and 9 deletions

View File

@@ -15,5 +15,8 @@ RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy project
COPY . /app/
# Expose port
EXPOSE 8000
# Run the application
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]

View File

@@ -17,3 +17,4 @@ rpds-py==0.30.0
sqlparse==0.5.5
uritemplate==4.2.0
wechatpayv3==2.0.1
drf-spectacular-sidecar==2026.1.1

View File

@@ -160,8 +160,8 @@ class SalespersonAdmin(ModelAdmin):
total_sales_display.short_description = "累计销售额 (已支付)"
def promotion_url(self, obj):
# 假设前端部署在 localhost:5173生产环境需配置
base_url = "http://localhost:5173"
# 假设前端部署在 localhost:15173生产环境需配置
base_url = "http://localhost:15173"
return f"{base_url}/?ref={obj.code}"
@display(description="推广链接")