fix: 管理员换打手跳过客服统计字段
This commit is contained in:
@@ -8135,11 +8135,12 @@ class ZxkfghdsView(APIView):
|
||||
except Exception as e:
|
||||
logger.error(f"打手每日统计更新失败: {e}")
|
||||
|
||||
# 5.5 客服处理统计
|
||||
kefu.jinrichuli += 1
|
||||
kefu.jinyuechuli += 1
|
||||
kefu.zongchuli += 1
|
||||
kefu.save()
|
||||
# 5.5 客服处理统计(管理员无 KefuProfile,跳过)
|
||||
if hasattr(kefu, 'jinrichuli'):
|
||||
kefu.jinrichuli += 1
|
||||
kefu.jinyuechuli += 1
|
||||
kefu.zongchuli += 1
|
||||
kefu.save()
|
||||
|
||||
# 至此,原订单已退款,事务提交
|
||||
|
||||
|
||||
Reference in New Issue
Block a user