修复了管理员无法进后台的问题
This commit is contained in:
@@ -68,7 +68,7 @@ def process_expired_order(self, dingdan_id):
|
||||
dashou_user = User.query.filter(UserUID=dashou_id).first()
|
||||
if dashou_user:
|
||||
# 获取打手扩展表
|
||||
dashou_profile = getattr(dashou_user, 'dashou_profile', None)
|
||||
dashou_profile = getattr(dashou_user, 'DashouProfile', None)
|
||||
if dashou_profile:
|
||||
# 使用F表达式原子更新
|
||||
UserDashou.query.filter(pk=dashou_profile.pk).update(
|
||||
@@ -96,7 +96,7 @@ def process_expired_order(self, dingdan_id):
|
||||
# 查询商家用户
|
||||
shangjia_user = User.query.filter(UserUID=shangjia_id).first()
|
||||
if shangjia_user:
|
||||
shangjia_profile = getattr(shangjia_user, 'shop_profile', None)
|
||||
shangjia_profile = getattr(shangjia_user, 'ShopProfile', None)
|
||||
if shangjia_profile:
|
||||
# 更新商家成交订单数量
|
||||
UserShangjia.query.filter(pk=shangjia_profile.pk).update(
|
||||
|
||||
Reference in New Issue
Block a user