长短steamId互转

    /**
     * steam_id转换account_id
     * @param $steamId
     * @return mixed
     */
    public static function formatAccountIdBySteamId($steamId){

        return bcsub((string)$steamId, '76561197960265728');
    }

    /**
     * account_id转换steam_id
     * @param $accountId
     * @return mixed
     */
    public static function formatSteamIdByAccountId($accountId){

        return bcadd((string)$accountId, '76561197960265728');
    }

  

猜你喜欢

转载自www.cnblogs.com/diguaer/p/10790111.html