作者 王智

baoxiu

... ... @@ -242,27 +242,8 @@ class Index extends Api
if (empty($arr[3])) {
$num = '001';
} else {
if (strstr($arr[3], '00') && $arr[3] < 100) {
$str = substr($arr[3], 2);
if ($str == 9) {
$num = '0' . '10';
} else {
$str2 = $str + 1;
$num = '00' . $str2;
}
}
if (strstr($arr[3], '0')) {
$str = substr($arr[3], 1);
if ($str == 99) {
$num = '100';
} else {
$str2 = $str + 1;
$num = '0' . $str2;
}
}
if (strlen($arr[3] > 2)) {
$num = $arr[3] + 1;
}
$str = $arr[3] + 1;
$num = str_pad($str, 3, '0', STR_PAD_LEFT);
}
$up_time = substr($param['up_time'], 0, 10);
$data = [
... ...