报名表单
This commit is contained in:
@@ -508,6 +508,19 @@ def payment_finish(request):
|
||||
order.save()
|
||||
print(f"订单 {order.id} 状态已更新")
|
||||
|
||||
# Handle Activity Signup
|
||||
if hasattr(order, 'activity') and order.activity:
|
||||
try:
|
||||
# Use string import to avoid circular dependency at module level
|
||||
from community.models import ActivitySignup
|
||||
signup = ActivitySignup.objects.filter(order=order).first()
|
||||
if signup:
|
||||
signup.status = 'confirmed'
|
||||
signup.save()
|
||||
print(f"活动报名状态已更新: {signup.id}")
|
||||
except Exception as e:
|
||||
print(f"更新活动报名状态失败: {str(e)}")
|
||||
|
||||
# 计算佣金 (旧版销售员系统)
|
||||
try:
|
||||
salesperson = order.salesperson
|
||||
|
||||
Reference in New Issue
Block a user