UserShare

This commit is contained in:
2024-12-01 14:43:14 +08:00
parent 912d8a299b
commit 85afcd0f95
3 changed files with 105 additions and 72 deletions

View File

@ -47,7 +47,7 @@ class UserShare extends Controller
$where = $this->_vali([
'id.require' => '随手拍ID不能为空',
]);
$this->vo = TicketUserShare::mk()->where($where)->findOrEmpty();
$this->vo = TicketUserShare::mk()->where($where)->with(['linked_ticket'])->findOrEmpty();
if ($this->vo->isEmpty()) $this->error('用户随手拍不存在!');
$this->fetch('detail');
}