源代码如下:
public function update_user_count($uid)
	{	
		return $this->shutdown_update('users', array(
			'fans_count' => $this->count('user_follow', 'friend_uid = ' . intval($uid)),
			'friend_count' => $this->count('user_follow', 'fans_uid = ' . intval($uid))
		), 'uid = ' . intval($uid));
	}
这样的话,关注者解除一个关注,会导致自己的fans会减少吗?
个人觉得合理的做法应该是在关注者的数据中去掉一个关注,在被关注者的数据中去掉一个fans。
                                                                
                                     阅读全文
                                
                                
                                     收起全文