|
...
|
...
|
@@ -20,9 +20,8 @@ class MailController extends BaseController |
|
|
|
public function lists(){
|
|
|
|
$mailModel = new MailModel();
|
|
|
|
//获取当前用户下的所有站内信
|
|
|
|
$lists = $mailModel
|
|
|
|
// ->where('user_list','like','%,'.$this->uid.',%')
|
|
|
|
->where('status',0)
|
|
|
|
$lists = $mailModel->where('status',0)
|
|
|
|
->where('user_list','like','%,'.$this->uid.',%')
|
|
|
|
->orWhere('user_list', null)->select(['*'])->orderBy($this->order,'desc')
|
|
|
|
->paginate($this->row = 10000, ['*'], 'page', $this->page);
|
|
|
|
if(!empty($lists)){
|
...
|
...
|
|