public function index()
 {
     if (I('id') > 0) {
         $this->_action();
         return;
     }
     if (I('get.type') == 'check') {
         $notificationModel = new \Common\Model\SystemNotificationModel();
         $notificationModel->updateStatus() or system_warn($notificationModel->getError());
         $where = $this->_getWhere();
         $unread = M($this->_table)->where($where)->count();
         $last_id = session('SYSTEM_NOTIFICATION_LAST_ID') + 0;
         $where['id'] = ['gt', $last_id];
         $unread_new = M($this->_table)->where($where)->count();
         session('SYSTEM_NOTIFICATION_LAST_ID', max($last_id, M($this->_table)->where($where)->max('id')));
         ajax_success(['unread' => $unread, 'new' => $unread_new]);
     }
     parent::index();
 }
 public function index()
 {
     $method = I('method');
     $method == 'excel' && $this->_lend_excel();
     $id = I('get.id');
     if ($id > 0) {
         $this->meta_title = '商铺详细';
         $info = M($this->_table)->find($id) or $this->error('找不到此记录信息!');
         int_to_string($info, $this->_field_text_map);
         $this->assign('info', $info);
         $this->display('detail');
         return;
     }
     parent::index();
 }