修复了已知的生产环境问题
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Generated by Django 4.2.27 on 2026-06-17 16:31
|
||||
# Generated by Django 4.2.27 on 2026-06-17 21:18
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
@@ -11,7 +11,7 @@ from decimal import Decimal, InvalidOperation
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import transaction, connection
|
||||
from django.db.models import Q, F, Max, Prefetch
|
||||
from django.db.models import Q, F, Max, Prefetch
|
||||
from gvsdsdk.fluent import db, func, FQ
|
||||
from django.core.cache import cache
|
||||
from django.core.paginator import Paginator
|
||||
@@ -2191,7 +2191,7 @@ class KehuGetDingdanLianjieView(APIView):
|
||||
# 获取商家昵称
|
||||
shangjia_nicheng = ''
|
||||
try:
|
||||
user_main = User.query.get(yonghuid=lianjie_obj.yonghu_id)
|
||||
user_main = User.query.get(UserUID=lianjie_obj.yonghu_id)
|
||||
shangjia_obj = user_main.shop_profile
|
||||
shangjia_nicheng = shangjia_obj.nicheng
|
||||
except (User.DoesNotExist, UserShangjia.DoesNotExist):
|
||||
@@ -2473,7 +2473,7 @@ class KehuTianxieDingdanView(APIView):
|
||||
# 验证打手是否存在且有效
|
||||
try:
|
||||
# 先查询用户主表
|
||||
dashou_user = User.query.get(yonghuid=zhiding_dashou)
|
||||
dashou_user = User.query.get(UserUID=zhiding_dashou)
|
||||
logger.info(f"找到打手用户 - 用户ID: {zhiding_dashou}")
|
||||
|
||||
# 通过反向关系获取打手扩展信息
|
||||
@@ -2571,7 +2571,7 @@ class KehuTianxieDingdanView(APIView):
|
||||
|
||||
# 获取商家信息用于返回
|
||||
try:
|
||||
user_main = User.query.get(yonghuid=lianjie_obj.yonghu_id)
|
||||
user_main = User.query.get(UserUID=lianjie_obj.yonghu_id)
|
||||
shangjia_obj = user_main.shop_profile
|
||||
shangjia_mingcheng = shangjia_obj.nicheng
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user