芒果电视tk2 php算法

代码相关 芒果解析 芒果解析源码 芒果电视tk2 php算法 芒果电视tk2算法 2018-06-21 阅读:3729
<?php

$data = array(
    "did"  => 'e0f53854-e2cc-46e4-9853-8c0c4a3bda00',
    "ver"  => "0.3.0001",
    "pno"  => 1000,
    "clit" => time()
    //"clit" => "1528181207"
);

function charAt($str, $index = 0){
    return substr($str, $index, 1);
}

function getTK2($param1){
    $_loc1_ = 0;
    $_loc2_ = 0;

    foreach( $param1 as $_loc3_ => $_loc4_ ){
        $_loc5_[] = $_loc3_ . "=" . $_loc4_;
    }
    $_loc6_ = join("|",$_loc5_);
    $_loc7_ = base64_encode($_loc6_);
    $_loc8_ = str_replace(array("+","/","="),array("_","~","-"),$_loc7_);
    $_loc11 = "";
    foreach( str_split($_loc8_) as $_loc9_ => $_loc10_ ){
        $_loc11 .= charAt($_loc8_,strlen($_loc8_)-$_loc9_-1);
    }
    return $_loc11;
}

print_r( getTK2($data) );

?>
生成海报
版权声明

本文基于《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权
文章链接:https://pohaier.com/2018/06/21/23.html (转载时请注明本文出处及文章链接)

如果觉得我的文章对你有用,请随意赞赏

1条评论

    视频解析学习者

    方便加下QQ吗,我芒果tv用您的tk2算法后遇到问题了,能请教些问题吗?

    游客 Windows10 787 天前回复