| xqd
@@ -98,7 +98,8 @@ class NoticeService
|
|
|
if(empty($id)){
|
|
|
throw new Exception("参数错误");
|
|
|
}
|
|
|
- if(!$message = UserSystemMessageModel::query()->find($id)){
|
|
|
+ $user = auth('api')->user();
|
|
|
+ if(!$message = UserSystemMessageModel::query()->where(['id'=>$id,'user_id'=>$user->id])->find($id)){
|
|
|
throw new Exception("消息不存在");
|
|
|
}
|
|
|
$message->is_delete = 1;
|