Некоторые вещи ставят в тупик. О_о
This commit is contained in:
parent
c6c6e32ac4
commit
8b2accf246
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user