From d13f82c391f1f0edbec1d18696886cad8db3f7ad Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 3 Dec 2024 21:42:05 +0800 Subject: [PATCH] BUG --- .../think-plugs-ticket/src/controller/api/auth/UserShare.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugs/think-plugs-ticket/src/controller/api/auth/UserShare.php b/plugs/think-plugs-ticket/src/controller/api/auth/UserShare.php index e4284ba..d16398d 100644 --- a/plugs/think-plugs-ticket/src/controller/api/auth/UserShare.php +++ b/plugs/think-plugs-ticket/src/controller/api/auth/UserShare.php @@ -19,10 +19,10 @@ class UserShare extends Auth public function info() { - [$id] = $this->_vali([ + $data = $this->_vali([ 'id.require' => 'ID不能为空', ]); - $info = TicketUserShare::query()->where(['user_id'=>$this->usid])->findOrEmpty($id); + $info = TicketUserShare::query()->where(['user_id'=>$this->usid])->where('id', '=', $data['id'])->findOrEmpty(); if ($info->isEmpty()) $this->error('数据不存在'); $this->success('获取用户随手拍详情', $info); }