From f28e08cce3a8b47e2ffcfc5d6862eae2f1b39eac Mon Sep 17 00:00:00 2001 From: XingQue Date: Fri, 10 Jul 2026 04:30:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=86=BB=E7=BB=93=E6=B1=A0=EF=BC=9A=E8=A7=92=E8=89=B2=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=B8=8E=E6=8F=90=E7=8E=B0=E8=B5=84=E4=BA=A7=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=BF=94=E5=9B=9E=20dongjie=5Fchi=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- yonghu/views.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/yonghu/views.py b/yonghu/views.py index 90352a6..ea3308e 100644 --- a/yonghu/views.py +++ b/yonghu/views.py @@ -876,6 +876,8 @@ class DashouXinxiAPIView(APIView): 'yongjin': str(dashou_profile.yue) if dashou_profile.yue is not None else '0.00', 'zonge': str(dashou_profile.zonge) if dashou_profile.zonge is not None else '0.00', 'yajin': str(dashou_profile.yajin) if dashou_profile.yajin is not None else '0.00', + 'dongjie_chi': str(dashou_profile.dongjie_chi) if dashou_profile.dongjie_chi is not None else '0.00', + 'dongjie_chi_yajin': str(dashou_profile.dongjie_chi_yajin) if dashou_profile.dongjie_chi_yajin is not None else '0.00', 'chengjiaoliang': dashou_profile.chengjiaozongliang, 'jiedanZongliang': dashou_profile.jiedanzongliang if dashou_profile.jiedanzongliang is not None else '0', 'jifen': dashou_profile.jifen, @@ -1073,6 +1075,7 @@ class GuanshiXinxiView(APIView): 'yaoqingzongshu': guanshi_profile.yaogingshuliang, # 邀请打手总数 'fenyongzonge': float(guanshi_profile.chongzhifenrun), # 充值分佣总额 'fenyongtixian': float(guanshi_profile.yue), # 可提现余额 + 'dongjie_chi': float(guanshi_profile.dongjie_chi or 0), # 冻结资金池 'yichongzhiDashou': yichongzhi_count, # 已充值打手数量 } }) @@ -1180,6 +1183,7 @@ class ShangJiaXinXiView(APIView): 'fadanzong': shangjia.fabu, # 发单总量 'tuikuanzong': shangjia.tuikuan, # 退款总量 'sjyue': float(shangjia.yue), # 商家余额 + 'dongjie_chi': float(shangjia.dongjie_chi or 0), # 冻结资金池 'riliushui': float(shangjia.jinriliushui), # 今日流水 'yueliushui': float(shangjia.jinyueliushui), # 今月流水 } @@ -15623,6 +15627,10 @@ class TixianAssetView(APIView): 'guanshi_rate': 0.00, 'zuzhang_rate': 0.00, 'kaoheguan_rate': 0.00, + 'dashou_dongjie_chi': '0.00', + 'dashou_yajin_dongjie_chi': '0.00', + 'guanshi_dongjie_chi': '0.00', + 'shangjia_dongjie_chi': '0.00', } # ------------------- 打手资产 ------------------- @@ -15630,6 +15638,8 @@ class TixianAssetView(APIView): dashou = user.dashou_profile data['dashou_yue'] = str(dashou.yue) data['dashou_yajin'] = str(dashou.yajin) + data['dashou_dongjie_chi'] = str(dashou.dongjie_chi or 0) + data['dashou_yajin_dongjie_chi'] = str(dashou.dongjie_chi_yajin or 0) except ObjectDoesNotExist: pass @@ -15637,6 +15647,7 @@ class TixianAssetView(APIView): try: shangjia = user.shop_profile data['shangjia_yue'] = str(shangjia.yue) + data['shangjia_dongjie_chi'] = str(shangjia.dongjie_chi or 0) except ObjectDoesNotExist: pass @@ -15644,6 +15655,7 @@ class TixianAssetView(APIView): try: guanshi = user.guanshi_profile data['guanshi_fenyong'] = str(guanshi.yue) + data['guanshi_dongjie_chi'] = str(guanshi.dongjie_chi or 0) except ObjectDoesNotExist: pass