feat: 资金冻结 P1 打手结单收口网关 + 到期解冻定时任务骨架
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -613,23 +613,13 @@ class AdQiangZhiJieDan(APIView):
|
||||
# 获取打手扩展表
|
||||
dashou_profile = dashou_user.DashouProfile
|
||||
|
||||
# 更新打手扩展表数据
|
||||
# ✅ 确认字段:chengjiaozongliang 成交单总量
|
||||
dashou_profile.chengjiaozongliang += 1
|
||||
|
||||
# ✅ 确认字段:yue 可提现余额
|
||||
dashou_profile.yue += dashou_fencheng
|
||||
|
||||
# ✅ 确认字段:zonge 打单赚取总额
|
||||
dashou_profile.zonge += dashou_fencheng
|
||||
|
||||
# ✅ 确认字段:jinrishouyi 今日收益金额
|
||||
dashou_profile.jinrishouyi += dashou_fencheng
|
||||
|
||||
# ✅ 确认字段:jinyueshouyi 今月收益金额
|
||||
dashou_profile.jinyueshouyi += dashou_fencheng
|
||||
|
||||
dashou_profile.save()
|
||||
from jituan.services.fund_freeze import credit_dashou_order_settle
|
||||
credit_dashou_order_settle(
|
||||
order=dingdan_obj,
|
||||
dashou_profile=dashou_profile,
|
||||
user_id=jiedan_dashou_id,
|
||||
amount=dashou_fencheng,
|
||||
)
|
||||
logger.info(f"强制结单成功,打手{jiedan_dashou_id}结算分成:{dashou_fencheng}")
|
||||
|
||||
except User.DoesNotExist:
|
||||
@@ -789,23 +779,13 @@ class AdJuJueTuiKuan(APIView):
|
||||
# 获取打手扩展表
|
||||
dashou_profile = dashou_user.DashouProfile
|
||||
|
||||
# 更新打手扩展表数据
|
||||
# ✅ 确认字段:chengjiaozongliang 成交单总量
|
||||
dashou_profile.chengjiaozongliang += 1
|
||||
|
||||
# ✅ 确认字段:yue 可提现余额
|
||||
dashou_profile.yue += dashou_fencheng
|
||||
|
||||
# ✅ 确认字段:zonge 打单赚取总额
|
||||
dashou_profile.zonge += dashou_fencheng
|
||||
|
||||
# ✅ 确认字段:jinrishouyi 今日收益金额
|
||||
dashou_profile.jinrishouyi += dashou_fencheng
|
||||
|
||||
# ✅ 确认字段:jinyueshouyi 今月收益金额
|
||||
dashou_profile.jinyueshouyi += dashou_fencheng
|
||||
|
||||
dashou_profile.save()
|
||||
from jituan.services.fund_freeze import credit_dashou_order_settle
|
||||
credit_dashou_order_settle(
|
||||
order=dingdan_obj,
|
||||
dashou_profile=dashou_profile,
|
||||
user_id=jiedan_dashou_id,
|
||||
amount=dashou_fencheng,
|
||||
)
|
||||
logger.info(f"拒绝退款成功,打手{jiedan_dashou_id}结算分成:{dashou_fencheng}")
|
||||
|
||||
except User.DoesNotExist:
|
||||
|
||||
Reference in New Issue
Block a user