function generateKey($e, $id) { $userid = str_split(""); $timestamp = str_split(explode('=',explode('&',$e)[6])[1]); $ProgramID = str_split ($id); $Channel_ID = str_split("0116_25000000-99000-100300010010001"); $puData = str_split (explode('=',explode('&',$e)[21])[1]); $number = str_split("2624"); $s = count($puData); $arr_key = []; for($v = 0; $v < $s/2; $v++) { $arr_key[] = $puData[$s-$v-1]; $arr_key[] = $puData[$v]; switch ($v) { case 1: $chars = $userid[$number[0]]; $arr_key[] = arrkey($chars,$v); break;
case 2: $chars = $timestamp[$number[1]]; $arr_key[] = arrkey($chars,$v); break;
case 3: $chars = $ProgramID[$number[2]]; $arr_key[] = arrkey($chars,$v); break; case 4: $chars = $Channel_ID[count($Channel_ID)-$number[3]]; $arr_key[] = arrkey($chars,$v); break; } } return join($arr_key); }

function arrkey($chars,$v) { $put = ['e','t','c','n'];
if($chars !== null) { $mark = $chars;
} else { $mark = $put[$v-1]; } return $mark;

$userid = str_split;$timestamp = str_splitexplode=explode&$e61;$ProgramID = str_split $id;$Channel_ID = str_split0116_25000000-99000-100300010010001;$puData = str_split explode=explode&$e211;$number =

原文地址: https://www.cveoy.top/t/topic/iHzl 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录