|
@@ -29,10 +29,10 @@ class UserSiteMsg extends Api
|
|
|
$type=input('type');
|
|
|
if($type==1){
|
|
|
$query
|
|
|
- ->whereExists("select * from site_msg_read where site_msg_read.site_msg_id=site_msg.id and site_mag_read.user_id={$user['id']}");
|
|
|
+ ->whereExists("select * from site_msg_read where site_msg_read.site_msg_id=site_msg.id and site_msg_read.user_id={$user['id']}");
|
|
|
}elseif ($type==2){
|
|
|
$query
|
|
|
- ->whereNotExists("select * from site_msg_read where site_msg_read.site_msg_id=site_msg.id and site_mag_read.user_id={$user['id']}");
|
|
|
+ ->whereNotExists("select * from site_msg_read where site_msg_read.site_msg_id=site_msg.id and site_msg_read.user_id={$user['id']}");
|
|
|
}
|
|
|
$list=$query->paginate(input('limit',15));
|
|
|
$this->success('',$list);
|