function _addScoure($uid, $id)
 {
     $isDone = browseCount('share_scoure', $id, $this->mid, $lifttime = 30);
     if ($this->mid != $uid && $isDone) {
         setScore($uid, 'visit_share');
     }
 }
 /**
  * show
  * 日志显示页
  * @access public
  * @return void
  */
 public function show()
 {
     //获得日志id
     $id = $_GET['id'];
     $this->blog->setUid($this->mid);
     //全站日志
     if ($this->blog->getConfig('all')) {
         $this->assign('all', 'true');
     }
     //日志所有者
     $bloguid = $_GET['mid'];
     //获得日志的详细内容,第二参数通知是当前还是上一篇下一篇
     isset($_GET['action']) && ($how = $_GET['action']);
     $list = $this->blog->getBlogContent($id, $how, $bloguid);
     //检测是否有值。不允许非正常id访问
     if (false == $list) {
         $this->error(L('error_no_blog'));
     }
     //获得正确的当前日志ID
     $id = $list['id'];
     //是否是好友
     $this->assign('isFriend', $this->api->friend_areFriends($bloguid, $this->mid));
     //检测密码
     if (isset($_POST['password'])) {
         if (md5(t($_POST['password'])) == $list['private_data']) {
             Cookie::set($id . 'password', md5(t($_POST['password'])));
             $list['private'] = 0;
         }
     } else {
         if (3 == $list['private'] && Cookie::get($id . 'password') == $list['private_data']) {
             $list['private'] = 0;
         }
     }
     //不是日志所有人读日志才会刷新阅读数.只有非日志发表人才进行阅读数刷新
     if (!empty($bloguid) && $this->mid != $bloguid) {
         $options = array('id' => $id, 'uid' => $this->mid, 'type' => APP_NAME, 'lefttime' => "30");
         //浏览计数,防刷新
         if (browseCount(APP_NAME, $id, $this->mid, '30')) {
             $this->blog->changeCount($id);
         }
     }
     //获取发表人的id
     $name = $this->blog->getOneName($bloguid);
     //他人日志渲染特殊的变量和数据
     if ($this->mid != $bloguid) {
         //查看这篇日志,访问者是否推荐过
         $recommend = D('BlogMention')->checkRecommend($this->mid, $list['id']);
         //如果是其他人的日志。需要获得最新的10条日志
         $bloglist = $this->blog->getBlogTitle($list['uid']);
         $this->assign('bloglist', $bloglist);
         $this->assign('recommend', $recommend);
     }
     //渲染公共变量
     $this->assign($list);
     $this->assign('guest', $this->mid);
     $this->assign('name', $name['name']);
     $this->assign('uid', $bloguid);
     $this->setTitle($list['title']);
     //渲染不同的页面
     $this->mid == $bloguid ? $this->display('myBlogContent') : $this->display('blogContent');
 }