Некоторые вещи ставят в тупик. О_о

This commit is contained in:
Ivor Barhansky 2023-07-11 02:48:32 +03:00
parent c6c6e32ac4
commit 8b2accf246

View File

@ -1253,18 +1253,9 @@ class User
return ItemsModel::addItem($id, $uid, $md, $dn, $mxiznos, $nosudba, $plavka);
}
public function getNum($v)
public function getNum($v): string
{
$plid = $v;
$pi = iconv_strlen($plid);
if ($pi < 5) {
$i = 0;
while ($i <= 5 - $pi) {
$plid = '0' . $plid;
$i++;
}
}
return $plid;
return sprintf('%06d', $v);
}
public function microLogin2(array $userInfo): string