细节优化,用户添加增加前钩子

This commit is contained in:
gongfuxiang
2023-05-15 10:18:19 +08:00
parent af7e8c141f
commit 3912a4f903
21 changed files with 114 additions and 87 deletions

View File

@ -49,7 +49,7 @@ class Message extends Common
public function Index()
{
// 参数
$params = $this->data_post;
$params = $this->data_request;
$params['user'] = $this->user;
// 消息更新未已读
@ -57,7 +57,7 @@ class Message extends Common
// 分页
$number = 10;
$page = max(1, isset($this->data_post['page']) ? intval($this->data_post['page']) : 1);
$page = max(1, isset($this->data_request['page']) ? intval($this->data_request['page']) : 1);
// 条件
$where = MessageService::MessageListWhere($params);