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