refactor(shopro): 优化订单处理逻辑
- 修改活动报名状态更新逻辑,根据报名人数和限制人数比较确定状态 - 移除不必要的模型引用,简化代码结构 - 调整订单自动处理和支付逻辑,提高代码可读性 - 重构订单监听器,优化体育活动报名相关操作
This commit is contained in:
@@ -222,7 +222,7 @@ class Activity extends Base
|
||||
'game_id' => $game['id'],
|
||||
'signin' => 0,
|
||||
'order' => $order,
|
||||
'status' => 1,
|
||||
'status' => ($order > $game['limit_num']) ? 0 : 1, //超过报名人数为候补
|
||||
];
|
||||
if ($u['gender'] == 0) {
|
||||
$gender['woman'] += 1;
|
||||
|
||||
Reference in New Issue
Block a user