修复了已知的字段问题

This commit is contained in:
2026-06-19 21:25:21 +08:00
parent 212840d4ab
commit f212e7203e
3 changed files with 13 additions and 13 deletions

View File

@@ -1981,7 +1981,7 @@ class ShangjiaPaifaView(APIView):
)
update_shangjia_daily(
UserID=request.user.UserUID,
yonghuid=request.user.UserUID,
amount=Decimal(str(jiage)),
action=1
)
@@ -2484,7 +2484,7 @@ class ShangjiaJiesuanView(APIView):
# ✅ 新方法(行为驱动,更安全)
update_shangjia_daily(
UserID=request.user.UserUID,
yonghuid=request.user.UserUID,
amount=Decimal(str(jine)),
action=2 # 2 = 结算
)
@@ -2635,7 +2635,7 @@ class ShangjiaChexiaoView(APIView):
# 行为驱动
update_shangjia_daily(
UserID=request.user.UserUID,
yonghuid=request.user.UserUID,
amount=Decimal(str(dingdan.Amount)),
action=3 # 3 = 退款
)