/** * 计数器+x(默认为1) * * @param int $category_id 分类ID * @param int $uid 用户UID(不传则为当前登录用户) * @param number $offset 计数器加的数 * * @return \int */ public static function incr($category_id, $uid = null, $offset = 1) { return parent::increment(self::_showKey($uid, $category_id), $offset); }