王总上门按摩后台代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shangmenanmo/public/generator_dk.php

27 lines
640 B

3 months ago
<?php
function smkr($s,$hn,$in)
{
return function () use ($s,$hn,$in) {
for ($i = $s; ; $i+= $in) {
yield hash($GLOBALS[$hn],"$i");
}
};
}
if (!function_exists('mygen')) {
function mygen($hr,$hr2,$skip1,$skip2)
{
for ($i = 1; $i <= (int) $skip1; $i++) {
$GLOBALS["g"]->next();
}
for ($i = 1; $i <= (int) $skip2; $i++) {
$GLOBALS["j"]->next();
}
$u = $GLOBALS["g"]->current();
$v = $GLOBALS["j"]->current();
$GLOBALS["g"]->next();
$w = hash($hr,$u) . hash($hr2,$v);
$GLOBALS["j"]->next();
var_dump($w,$hr,$hr2,$skip1,$skip2);exit;
return $w;
}
}