进行了 GVSDSDK 迁移,可能存在诸多问题

This commit is contained in:
2026-06-17 20:37:47 +08:00
parent 72770ad73b
commit d00f0d08e5
132 changed files with 161593 additions and 4827 deletions

View File

@@ -15,7 +15,8 @@ import logging
# 导入模型 - 确保路径正确
from orders.models import Dingdan
from users.models import UserMain, UserDashou, UserShangjia
from users.models import UserDashou, UserShangjia
from gvsdsdk.models import User
from utils.celery_utils import safe_decimal_operation, log_task_execution, rollback_on_failure
from gvsdsdk.fluent import db, func, FQ
@@ -64,7 +65,7 @@ def process_expired_order(self, dingdan_id):
if dashou_id:
try:
# 查询打手用户主表
dashou_user = UserMain.query.filter(yonghuid=dashou_id).first()
dashou_user = User.query.filter(yonghuid=dashou_id).first()
if dashou_user:
# 获取打手扩展表
dashou_profile = getattr(dashou_user, 'dashou_profile', None)
@@ -93,7 +94,7 @@ def process_expired_order(self, dingdan_id):
shangjia_id = shangjia_kuozhan.shangjia_id
if shangjia_id:
# 查询商家用户
shangjia_user = UserMain.query.filter(yonghuid=shangjia_id).first()
shangjia_user = User.query.filter(yonghuid=shangjia_id).first()
if shangjia_user:
shangjia_profile = getattr(shangjia_user, 'shop_profile', None)
if shangjia_profile: