...
|
...
|
@@ -201,11 +201,11 @@ class HomeBaseController extends BaseController |
|
|
public function number(){
|
|
|
$user_count = Db::name('user')->where('user_type',2)->count();
|
|
|
dump(str_split($user_count));
|
|
|
if(count(str_split($user_count))+1>99999){
|
|
|
if(count(str_split($user_count))>5){
|
|
|
return 99999;
|
|
|
}
|
|
|
$num = 5;
|
|
|
$zero = $num - $user_count;
|
|
|
$zero = $num - count(str_split($user_count));
|
|
|
$result = '';
|
|
|
for($i=1;$i<$zero;$i++){
|
|
|
$result .= "0";
|
...
|
...
|
|