修正了字段名不同的问题(补充)
This commit is contained in:
@@ -1727,7 +1727,7 @@ class JiedanView2(APIView):
|
||||
# 14. 🆕 写入打手表现表(结算评价)
|
||||
if jiedan_dashou_id:
|
||||
record_dashou_biaoxian(
|
||||
OrderID=dingdan_id,
|
||||
dingdan_id=dingdan_id,
|
||||
dashou_id=jiedan_dashou_id,
|
||||
xingwei=3, # 3=结算
|
||||
fanche_RatingCount=fanche_cishu,
|
||||
@@ -3593,7 +3593,7 @@ class QiangdanView(APIView):
|
||||
# 记录抢单表现(不影响主流程)
|
||||
# 如果订单表里有 bankuai 信息,可以用 order.bankuai 代替 None
|
||||
record_dashou_biaoxian(
|
||||
OrderID=dingdan_id,
|
||||
dingdan_id=dingdan_id,
|
||||
dashou_id=order.PlayerID,
|
||||
xingwei=1,
|
||||
jiedan_time=timezone.now(), # 直接取当前时间
|
||||
@@ -3619,7 +3619,7 @@ class QiangdanView(APIView):
|
||||
dashou_profile = user.DashouProfile
|
||||
if (dashou_profile.zhuangtai != 1 or
|
||||
dashou_profile.zhanghaozhuangtai != 1 or
|
||||
dashou_profile.DeductedPoints < 5):
|
||||
dashou_profile.jifen < 5):
|
||||
return None
|
||||
return dashou_profile
|
||||
except UserDashou.DoesNotExist:
|
||||
@@ -4223,7 +4223,7 @@ class DashouTijiaoView(APIView):
|
||||
|
||||
# ========== 新增:记录打手提交时间 ==========
|
||||
record_dashou_biaoxian(
|
||||
OrderID=dingdan_id,
|
||||
dingdan_id=dingdan_id,
|
||||
dashou_id=yonghuid,
|
||||
xingwei=2, # 提交
|
||||
tijiao_time=timezone.now()
|
||||
|
||||
Reference in New Issue
Block a user