xieruidong 2 anos atrás
pai
commit
ebd693c835
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      application/api/controller/UserSiteMsg.php

+ 2 - 2
application/api/controller/UserSiteMsg.php

@@ -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);