正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -20,7 +20,7 @@ class MailController extends BaseController | @@ -20,7 +20,7 @@ class MailController extends BaseController | ||
| 20 | public function lists(){ | 20 | public function lists(){ |
| 21 | $mailModel = new MailModel(); | 21 | $mailModel = new MailModel(); |
| 22 | //获取当前用户下的所有站内信 | 22 | //获取当前用户下的所有站内信 |
| 23 | - $lists = $mailModel->where('user_list','like','%,'.$this->uid.',%')->select(['*'])->orderBy($this->order,'desc') | 23 | + $lists = $mailModel->where('user_list','like','%,'.$this->uid.',%')->orWhere('user_list', '')->select(['*'])->orderBy($this->order,'desc') |
| 24 | ->paginate($this->row, ['*'], 'page', $this->page); | 24 | ->paginate($this->row, ['*'], 'page', $this->page); |
| 25 | if(!empty($lists)){ | 25 | if(!empty($lists)){ |
| 26 | $lists = $lists->toArray(); | 26 | $lists = $lists->toArray(); |
-
请 注册 或 登录 后发表评论