fix(zy): 修复活动报名时间和状态逻辑
- 修复了活动报名时间判断逻辑,增加了对报名结束时间的判断 - 修改了活动报名状态的判断条件,提高了代码的可读性和准确性 - 优化了订单自动操作和支付后的处理流程,确保活动报名状态正确更新 - 新增了用户权限验证功能,确保只有管理员或裁判可以修改用户状态
This commit is contained in:
@@ -24,7 +24,7 @@ class Tree
|
||||
* @param \Closure $resultCb 用来处理每一次查询的结果 比如要取出树中的所有 name
|
||||
* @return Collection
|
||||
*/
|
||||
public function getTree($items = 0, \Closure $resultCb = null)
|
||||
public function getTree($items = 0, ?\Closure $resultCb = null)
|
||||
{
|
||||
if (!is_array($items) && !$items instanceof Collection) {
|
||||
$items = $this->getQuery()->where('parent_id', $items)->select();
|
||||
@@ -48,7 +48,7 @@ class Tree
|
||||
* @param \Closure $resultCb 用来处理每一次查询的结果 比如要取出树中的所有 name
|
||||
* @return Collection
|
||||
*/
|
||||
public function getChildren($id, \Closure $resultCb = null)
|
||||
public function getChildren($id, ?\Closure $resultCb = null)
|
||||
{
|
||||
$self = $this->getQuery()->where('id', $id)->select();
|
||||
if(!$self) {
|
||||
|
||||
Reference in New Issue
Block a user