Ejemplo n.º 1
0
 public function newmsg_onget()
 {
     $res = $this->model->getNewNoticeNum($this->user_id);
     //获取新通知条数
     if ($res) {
         $noticeNum = (int) $res;
     } else {
         $noticeNum = 0;
     }
     $feed = new Feed_Model();
     $aboutmeNum = $feed->aboutmeCount(1);
     //$imUser = $feed->findImNew();
     $this->setResponseCode(200);
     return array('noticeNum' => $noticeNum, 'aboutmeNum' => $aboutmeNum);
 }